mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Remove WM_SIZE argument (unecessary now that we directly use g_iScreenWidth and g_iScreenHeight)
This commit is contained in:
parent
7f2b7830a9
commit
a97f4d78ed
|
|
@ -431,14 +431,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||||
case WM_SIZE:
|
|
||||||
{
|
|
||||||
// Set the screen width and height used for calculating the aspect ratio
|
|
||||||
g_iScreenWidth = LOWORD(lParam);
|
|
||||||
g_iScreenHeight = HIWORD(lParam);
|
|
||||||
app.DebugPrintf("width: %d, height: %d\n", g_iScreenWidth, g_iScreenHeight);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue