mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-16 21:11:15 +00:00
97%
This commit is contained in:
parent
f2edf8e27a
commit
e03af11c8e
@ -28,7 +28,7 @@ int g_targetWidth = 640;
|
|||||||
int g_targetHeight = 480;
|
int g_targetHeight = 480;
|
||||||
|
|
||||||
// 0x410060
|
// 0x410060
|
||||||
unsigned int g_targetDepth = 16;
|
int g_targetDepth = 16;
|
||||||
|
|
||||||
// 0x410064
|
// 0x410064
|
||||||
int g_reqEnableRMDevice = 0;
|
int g_reqEnableRMDevice = 0;
|
||||||
|
|||||||
@ -18,7 +18,7 @@ extern int g_rmDisabled;
|
|||||||
extern int g_waitingForTargetDepth;
|
extern int g_waitingForTargetDepth;
|
||||||
extern int g_targetWidth;
|
extern int g_targetWidth;
|
||||||
extern int g_targetHeight;
|
extern int g_targetHeight;
|
||||||
extern unsigned int g_targetDepth;
|
extern int g_targetDepth;
|
||||||
extern int g_reqEnableRMDevice;
|
extern int g_reqEnableRMDevice;
|
||||||
extern int g_startupDelay;
|
extern int g_startupDelay;
|
||||||
extern long g_lastFrameTime;
|
extern long g_lastFrameTime;
|
||||||
|
|||||||
@ -214,14 +214,15 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
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]) {
|
||||||
int targetWidth = LOWORD(lParam);
|
int targetWidth = LOWORD(lParam);
|
||||||
int targetHeight = HIWORD(lParam);
|
int targetHeight = HIWORD(lParam);
|
||||||
|
int targetDepth = wParam;
|
||||||
|
|
||||||
if (g_waitingForTargetDepth) {
|
if (g_waitingForTargetDepth) {
|
||||||
g_waitingForTargetDepth = 0;
|
g_waitingForTargetDepth = 0;
|
||||||
g_targetDepth = wParam;
|
g_targetDepth = targetDepth;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
BOOL valid = FALSE;
|
BOOL valid = FALSE;
|
||||||
if (g_targetDepth == wParam && targetWidth == g_targetWidth && targetHeight == g_targetHeight) {
|
if (targetWidth == g_targetWidth && targetHeight == g_targetHeight && g_targetDepth == targetDepth) {
|
||||||
valid = TRUE;
|
valid = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user