diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 21:32:42 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 21:32:42 +0800 |
| commit | 7e3bdebd77680cd6e474d495f6a8bb27ddac2ecd (patch) | |
| tree | 0e20f24a9c54cb415e459bffc1d6168c9472f11d /Minecraft.Client/Common/Consoles_App.cpp | |
| parent | 515f8e6fa7a2d47a5dfcb94b282069df44343628 (diff) | |
fix: do not use hardcoded screen size
Diffstat (limited to 'Minecraft.Client/Common/Consoles_App.cpp')
| -rw-r--r-- | Minecraft.Client/Common/Consoles_App.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Minecraft.Client/Common/Consoles_App.cpp b/Minecraft.Client/Common/Consoles_App.cpp index 12aecb3d..24819250 100644 --- a/Minecraft.Client/Common/Consoles_App.cpp +++ b/Minecraft.Client/Common/Consoles_App.cpp @@ -6234,7 +6234,7 @@ wstring CMinecraftApp::GetActionReplacement(int iPad, unsigned char ucAction) int size = 30; #elif defined _WIN64 int size = 45; - if(ui.getScreenWidth() < 1920) size = 30; + if(ui.getScreenHeight() < 1080) size = 30; #else int size = 45; #endif @@ -6363,7 +6363,7 @@ wstring CMinecraftApp::GetVKReplacement(unsigned int uiVKey) int size = 30; #elif defined _WIN64 int size = 45; - if(ui.getScreenWidth() < 1920) size = 30; + if(ui.getScreenHeight() < 1080) size = 30; #else int size = 45; #endif @@ -6394,7 +6394,7 @@ wstring CMinecraftApp::GetIconReplacement(unsigned int uiIcon) int size = 22; #elif defined _WIN64 int size = 33; - if(ui.getScreenWidth() < 1920) size = 22; + if(ui.getScreenHeight() < 1080) size = 22; #else int size = 33; #endif |
