mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
isle: named last global var
This commit is contained in:
parent
e2f13161b8
commit
1c95cbe40e
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ const char *WINDOW_TITLE = "LEGO\xAE";
|
||||||
unsigned char g_mousedown = 0;
|
unsigned char g_mousedown = 0;
|
||||||
unsigned char g_mousemoved = 0;
|
unsigned char g_mousemoved = 0;
|
||||||
int g_rmDisabled = 0;
|
int g_rmDisabled = 0;
|
||||||
int _DAT_00410054 = 1;
|
int g_waitingForTargetDepth = 1;
|
||||||
int g_targetWidth = 640;
|
int g_targetWidth = 640;
|
||||||
int g_targetHeight = 480;
|
int g_targetHeight = 480;
|
||||||
unsigned int g_targetDepth = 16;
|
unsigned int g_targetDepth = 16;
|
||||||
|
|
|
@ -356,7 +356,7 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
return DefWindowProcA(hWnd, WM_NCPAINT, wParam, lParam);
|
return DefWindowProcA(hWnd, WM_NCPAINT, wParam, lParam);
|
||||||
case WM_DISPLAYCHANGE:
|
case WM_DISPLAYCHANGE:
|
||||||
if (g_isle && VideoManager() && g_isle->m_fullScreen && VideoManager()->m_unk74 && VideoManager()->m_unk74[0x220]) {
|
if (g_isle && VideoManager() && g_isle->m_fullScreen && VideoManager()->m_unk74 && VideoManager()->m_unk74[0x220]) {
|
||||||
if (_DAT_00410054 == 0) {
|
if (!g_waitingForTargetDepth) {
|
||||||
unsigned char valid = FALSE;
|
unsigned char valid = FALSE;
|
||||||
if (LOWORD(lParam) == g_targetWidth && HIWORD(lParam) == g_targetHeight && g_targetDepth == wParam) {
|
if (LOWORD(lParam) == g_targetWidth && HIWORD(lParam) == g_targetHeight && g_targetDepth == wParam) {
|
||||||
valid = TRUE;
|
valid = TRUE;
|
||||||
|
@ -371,7 +371,7 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
g_reqEnableRMDevice = 1;
|
g_reqEnableRMDevice = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_DAT_00410054 = 0;
|
g_waitingForTargetDepth = 0;
|
||||||
g_targetDepth = wParam;
|
g_targetDepth = wParam;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue