This commit is contained in:
Christian Semmler 2023-06-27 01:25:50 +02:00
parent f2edf8e27a
commit e03af11c8e
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C
3 changed files with 5 additions and 4 deletions

View File

@ -28,7 +28,7 @@ int g_targetWidth = 640;
int g_targetHeight = 480;
// 0x410060
unsigned int g_targetDepth = 16;
int g_targetDepth = 16;
// 0x410064
int g_reqEnableRMDevice = 0;

View File

@ -18,7 +18,7 @@ extern int g_rmDisabled;
extern int g_waitingForTargetDepth;
extern int g_targetWidth;
extern int g_targetHeight;
extern unsigned int g_targetDepth;
extern int g_targetDepth;
extern int g_reqEnableRMDevice;
extern int g_startupDelay;
extern long g_lastFrameTime;

View File

@ -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]) {
int targetWidth = LOWORD(lParam);
int targetHeight = HIWORD(lParam);
int targetDepth = wParam;
if (g_waitingForTargetDepth) {
g_waitingForTargetDepth = 0;
g_targetDepth = wParam;
g_targetDepth = targetDepth;
}
else {
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;
}