aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/Windows64/Windows64_Minecraft.cpp')
-rw-r--r--Minecraft.Client/Windows64/Windows64_Minecraft.cpp27
1 files changed, 2 insertions, 25 deletions
diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
index 48040c66..272b29bf 100644
--- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
+++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
@@ -729,16 +729,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
- // 4J-Win64: set CWD to exe dir so asset paths resolve correctly
- {
- char szExeDir[MAX_PATH] = {};
- GetModuleFileNameA(NULL, szExeDir, MAX_PATH);
- char *pSlash = strrchr(szExeDir, '\\');
- if (pSlash) { *(pSlash + 1) = '\0'; SetCurrentDirectoryA(szExeDir); }
- }
-
- // Declare DPI awareness so GetSystemMetrics returns physical pixels
- SetProcessDPIAware();
+ dyn_SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE);
g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN);
g_iScreenHeight = GetSystemMetrics(SM_CYSCREEN);
@@ -1272,21 +1263,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
}
}
- // F3 toggles the debug console overlay, F11 toggles fullscreen
- if (KMInput.IsKeyPressed(VK_F3))
- {
- static bool s_debugConsole = false;
- s_debugConsole = !s_debugConsole;
- ui.ShowUIDebugConsole(s_debugConsole);
- }
-
-#ifdef _DEBUG_MENUS_ENABLED
- if (KMInput.IsKeyPressed(VK_F4))
- {
- ui.NavigateToScene(ProfileManager.GetPrimaryPad(), eUIScene_DebugOverlay, NULL, eUILayer_Debug);
- }
-#endif
-
+ // F11 toggles fullscreen
if (KMInput.IsKeyPressed(VK_F11))
{
ToggleFullscreen();