Revert "fix: fix resolution detection (#133)" (#143)

This reverts commit afa4efbc85.
This commit is contained in:
void_17
2026-03-02 22:56:56 +07:00
committed by GitHub
parent afa4efbc85
commit 8c18926d59
5 changed files with 18 additions and 11 deletions

View File

@@ -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')