Update isle.cpp

Renamed the variable again, this time to “g_targetDepthNotSet” due to me realizing that it gets set to 0 AFTER “g_targetDepth” gets set.
This commit is contained in:
CB-XCVS 2023-06-11 13:53:08 -07:00 committed by GitHub
parent 9bdc1aed04
commit fdeb4036a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (g_targetDepthSet == 0) {
if (g_targetDepthNotSet == 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 {
g_targetDepthSet = 0;
g_targetDepthNotSet = 0;
g_targetDepth = wParam;
}
}