mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-19 14:31:14 +00:00
Update isle.cpp
Rename variable to “g_targetDepthSet”
This commit is contained in:
parent
7a697184ff
commit
9bdc1aed04
@ -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_targetDepthSet == 0) {
|
||||||
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_targetDepthSet = 0;
|
||||||
g_targetDepth = wParam;
|
g_targetDepth = wParam;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user