aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI
diff options
context:
space:
mode:
authorrtm516 <rtm516@users.noreply.github.com>2026-03-09 02:05:54 +0000
committerGitHub <noreply@github.com>2026-03-08 21:05:54 -0500
commit91bf8d44faa6b0397768cb794a021db0e3e5a181 (patch)
tree5b87835f90daa760d35d075fe51774fd4f6699e5 /Minecraft.Client/Common/UI
parentaf5d5a06d51daf5b79ea1f657637e4e5888f7707 (diff)
Use the correctly sized icons on 720p (#883)
* Use the correctly sized icons on 720p * Improve check
Diffstat (limited to 'Minecraft.Client/Common/UI')
-rw-r--r--Minecraft.Client/Common/UI/UIController.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/Minecraft.Client/Common/UI/UIController.cpp b/Minecraft.Client/Common/UI/UIController.cpp
index b529b391..b12ea5e7 100644
--- a/Minecraft.Client/Common/UI/UIController.cpp
+++ b/Minecraft.Client/Common/UI/UIController.cpp
@@ -1828,14 +1828,24 @@ GDrawTexture * RADLINK UIController::TextureSubstitutionCreateCallback ( void *
// 4J Stu - All our flash controls that allow replacing textures use a special 64x64 symbol
// Force this size here so that our images don't get scaled wildly
- #if (defined __ORBIS__ || defined _DURANGO || defined _WINDOWS64 )
+ #if (defined __ORBIS__ || defined _DURANGO )
*width = 96;
*height = 96;
#else
*width = 64;
*height = 64;
+ #endif
+ #if defined _WINDOWS64
+ // Only set the size to 96x96 for 1080p on Windows
+ UIScene *scene = uiController->GetTopScene(0);
+ if (scene->getSceneResolution() == UIScene::eSceneResolution_1080)
+ {
+ *width = 96;
+ *height = 96;
+ }
#endif
+
*destroy_callback_data = (void *)id;
app.DebugPrintf("Found substitution texture %ls (%d) - %dx%d\n", static_cast<wchar_t *>(texture_name), id, image.getWidth(), image.getHeight());