mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
Do not treat Alt-Tab as resolution change (bug 7866)
This commit is contained in:
parent
65d51665e5
commit
5dcac4c48f
3 changed files with 9 additions and 0 deletions
|
@ -157,6 +157,7 @@
|
||||||
Bug #7840: First run of the launcher doesn't save viewing distance as the default value
|
Bug #7840: First run of the launcher doesn't save viewing distance as the default value
|
||||||
Bug #7841: Editor: "Dirty" water heights are saved in modified CELLs
|
Bug #7841: Editor: "Dirty" water heights are saved in modified CELLs
|
||||||
Bug #7859: AutoCalc flag is not used to calculate potion value
|
Bug #7859: AutoCalc flag is not used to calculate potion value
|
||||||
|
Bug #7866: Alt-tabbing is considered as a resolution change
|
||||||
Feature #2566: Handle NAM9 records for manual cell references
|
Feature #2566: Handle NAM9 records for manual cell references
|
||||||
Feature #3537: Shader-based water ripples
|
Feature #3537: Shader-based water ripples
|
||||||
Feature #5173: Support for NiFogProperty
|
Feature #5173: Support for NiFogProperty
|
||||||
|
|
|
@ -1172,6 +1172,9 @@ namespace MWGui
|
||||||
|
|
||||||
void WindowManager::windowResized(int x, int y)
|
void WindowManager::windowResized(int x, int y)
|
||||||
{
|
{
|
||||||
|
if (x == Settings::video().mResolutionX && y == Settings::video().mResolutionY)
|
||||||
|
return;
|
||||||
|
|
||||||
Settings::video().mResolutionX.set(x);
|
Settings::video().mResolutionX.set(x);
|
||||||
Settings::video().mResolutionY.set(y);
|
Settings::video().mResolutionY.set(y);
|
||||||
|
|
||||||
|
|
|
@ -252,6 +252,11 @@ namespace SDLUtil
|
||||||
SDL_GL_GetDrawableSize(mSDLWindow, &w, &h);
|
SDL_GL_GetDrawableSize(mSDLWindow, &w, &h);
|
||||||
int x, y;
|
int x, y;
|
||||||
SDL_GetWindowPosition(mSDLWindow, &x, &y);
|
SDL_GetWindowPosition(mSDLWindow, &x, &y);
|
||||||
|
|
||||||
|
// Happens when you Alt-Tab out of game
|
||||||
|
if (w == 0 && h == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
mViewer->getCamera()->getGraphicsContext()->resized(x, y, w, h);
|
mViewer->getCamera()->getGraphicsContext()->resized(x, y, w, h);
|
||||||
|
|
||||||
mViewer->getEventQueue()->windowResize(x, y, w, h);
|
mViewer->getEventQueue()->windowResize(x, y, w, h);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue