aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-02 22:56:56 +0700
committerGitHub <noreply@github.com>2026-03-02 22:56:56 +0700
commit8c18926d5911343975604b93c51efbcd926c133a (patch)
treeee7f1000308d941ff051cfce91e038084163e67a /Minecraft.Client/Windows64/Windows64_Minecraft.cpp
parentafa4efbc8513cbb8565b9700cae48648e3dffe29 (diff)
Revert "fix: fix resolution detection (#133)" (#143)
This reverts commit afa4efbc8513cbb8565b9700cae48648e3dffe29.
Diffstat (limited to 'Minecraft.Client/Windows64/Windows64_Minecraft.cpp')
-rw-r--r--Minecraft.Client/Windows64/Windows64_Minecraft.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
index 3268a02b..d822e943 100644
--- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
+++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
@@ -4,7 +4,6 @@
#include "stdafx.h"
#include <assert.h>
-#include <ShellScalingApi.h>
#include "GameConfig\Minecraft.spa.h"
#include "..\MinecraftServer.h"
#include "..\LocalPlayer.h"
@@ -717,10 +716,20 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
- SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE);
+ /*
+ // Declare DPI awareness so GetSystemMetrics returns physical pixels
+ SetProcessDPIAware();
g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN);
g_iScreenHeight = GetSystemMetrics(SM_CYSCREEN);
+ {
+ char buf[128];
+ sprintf(buf, "Screen resolution: %dx%d\n", g_iScreenWidth, g_iScreenHeight);
+ OutputDebugStringA(buf);
+ }
+ */
+
+
if(lpCmdLine)
{
if(lpCmdLine[0] == '1')