From 1c95cbe40ee271e4b5a85bcb7682eb294df56725 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Tue, 13 Jun 2023 20:25:42 -0700 Subject: [PATCH] isle: named last global var --- ISLE/define.cpp | 2 +- ISLE/isle.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ISLE/define.cpp b/ISLE/define.cpp index f4f08100..0e38f2c8 100644 --- a/ISLE/define.cpp +++ b/ISLE/define.cpp @@ -8,7 +8,7 @@ const char *WINDOW_TITLE = "LEGO\xAE"; unsigned char g_mousedown = 0; unsigned char g_mousemoved = 0; int g_rmDisabled = 0; -int _DAT_00410054 = 1; +int g_waitingForTargetDepth = 1; int g_targetWidth = 640; int g_targetHeight = 480; unsigned int g_targetDepth = 16; diff --git a/ISLE/isle.cpp b/ISLE/isle.cpp index f4d9cfeb..e3483cd5 100644 --- a/ISLE/isle.cpp +++ b/ISLE/isle.cpp @@ -356,7 +356,7 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return DefWindowProcA(hWnd, WM_NCPAINT, wParam, lParam); case WM_DISPLAYCHANGE: 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; if (LOWORD(lParam) == g_targetWidth && HIWORD(lParam) == g_targetHeight && g_targetDepth == wParam) { valid = TRUE; @@ -371,7 +371,7 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) g_reqEnableRMDevice = 1; } } else { - _DAT_00410054 = 0; + g_waitingForTargetDepth = 0; g_targetDepth = wParam; } }