Fix Iggy player crashes on systems with DPI changed
The code that was supposed to make the game DPI-aware was broken. I remove it until a proper implementation.
This commit is contained in:
@@ -716,6 +716,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
/*
|
||||
// Declare DPI awareness so GetSystemMetrics returns physical pixels
|
||||
SetProcessDPIAware();
|
||||
g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN);
|
||||
@@ -726,6 +727,8 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
sprintf(buf, "Screen resolution: %dx%d\n", g_iScreenWidth, g_iScreenHeight);
|
||||
OutputDebugStringA(buf);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
if(lpCmdLine)
|
||||
{
|
||||
@@ -1220,7 +1223,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
ToggleFullscreen();
|
||||
}
|
||||
|
||||
// TAB opens host options menu. - Vvis :3
|
||||
// TAB opens host options menu. - Vvis :3
|
||||
if (KMInput.IsKeyPressed(VK_TAB))
|
||||
{
|
||||
if (Minecraft* pMinecraft = Minecraft::GetInstance())
|
||||
|
||||
Reference in New Issue
Block a user