mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Adds comment explaining window position change in GuiCanvas.
This commit is contained in:
parent
dd665496d1
commit
9539a4a055
1 changed files with 4 additions and 0 deletions
|
|
@ -1762,6 +1762,8 @@ void GuiCanvas::renderFrame(bool preRenderOnly, bool bufferSwap /* = true */)
|
||||||
mode.antialiasLevel = 0;
|
mode.antialiasLevel = 0;
|
||||||
Point2I winPos = mPlatformWindow->getPosition(); // Save position so we can put window back.
|
Point2I winPos = mPlatformWindow->getPosition(); // Save position so we can put window back.
|
||||||
mPlatformWindow->setVideoMode(mode);
|
mPlatformWindow->setVideoMode(mode);
|
||||||
|
// setVideoMode (above) will center the window on the display device. If the window had been positioned
|
||||||
|
// by the user or from script, put it back where it was before the light manager change.
|
||||||
mPlatformWindow->setPosition(winPos);
|
mPlatformWindow->setPosition(winPos);
|
||||||
|
|
||||||
Con::printf( "AntiAliasing has been disabled; it is not compatible with AdvancedLighting." );
|
Con::printf( "AntiAliasing has been disabled; it is not compatible with AdvancedLighting." );
|
||||||
|
|
@ -1776,6 +1778,8 @@ void GuiCanvas::renderFrame(bool preRenderOnly, bool bufferSwap /* = true */)
|
||||||
mode.parseFromString( pref );
|
mode.parseFromString( pref );
|
||||||
Point2I winPos = mPlatformWindow->getPosition(); // Save position so we can put window back.
|
Point2I winPos = mPlatformWindow->getPosition(); // Save position so we can put window back.
|
||||||
mPlatformWindow->setVideoMode(mode);
|
mPlatformWindow->setVideoMode(mode);
|
||||||
|
// setVideoMode (above) will center the window on the display device. If the window had been positioned
|
||||||
|
// by the user or from script, put it back where it was before the light manager change.
|
||||||
mPlatformWindow->setPosition(winPos);
|
mPlatformWindow->setPosition(winPos);
|
||||||
|
|
||||||
Con::printf( "AntiAliasing has been enabled while running BasicLighting." );
|
Con::printf( "AntiAliasing has been enabled while running BasicLighting." );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue