From 9bdc1aed0491cef16ecf942695232768175185d0 Mon Sep 17 00:00:00 2001 From: CB-XCVS <103461412+CB-XCVS@users.noreply.github.com> Date: Sun, 11 Jun 2023 13:48:31 -0700 Subject: [PATCH] Update isle.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename variable to “g_targetDepthSet” --- ISLE/isle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ISLE/isle.cpp b/ISLE/isle.cpp index c8247b82..f593c3c0 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_targetDepthSet == 0) { 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_targetDepthSet = 0; g_targetDepth = wParam; } }