mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-23 12:08:56 +00:00
[Windows] Temporary workaround to keep the window resolution as it was before the changes to fix the preprocessor defines for the Release build.
This commit is contained in:
parent
018c43b995
commit
fabcdcd84d
@ -251,7 +251,13 @@ oeWin32Application::oeWin32Application(const char *name, unsigned flags, HInstan
|
||||
} else {
|
||||
// initialize main window and display it.
|
||||
#ifdef RELEASE
|
||||
SetRect(&rect, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
|
||||
// TODO: Fix custom window resolution when original code below is active.
|
||||
// After the change to properly set RELEASE for Release builds, this call
|
||||
// breaks resolution of menu screens, videos and ingame huds.
|
||||
// So for now, we keep the debug version of this call that was active before
|
||||
// that change and works consistently at least.
|
||||
//SetRect(&rect, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
|
||||
SetRect(&rect, 0, 0, 640, 480);
|
||||
#else
|
||||
SetRect(&rect, 0, 0, 640, 480);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user