From 6424aad503e0445d31076e5400124873fb4c725f Mon Sep 17 00:00:00 2001 From: rtm516 Date: Sat, 7 Mar 2026 22:40:29 +0000 Subject: [PATCH] Use the correctly sized icons on 720p --- Minecraft.Client/Common/UI/UIController.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/Common/UI/UIController.cpp b/Minecraft.Client/Common/UI/UIController.cpp index 840ed389e..4211f7a05 100644 --- a/Minecraft.Client/Common/UI/UIController.cpp +++ b/Minecraft.Client/Common/UI/UIController.cpp @@ -1804,14 +1804,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 + // This matches the logic defining m_loadedResolution in UIScene + if (uiController->getScreenHeight() > 720) + { + *width = 96; + *height = 96; + } + #endif + *destroy_callback_data = (void *)id; app.DebugPrintf("Found substitution texture %ls (%d) - %dx%d\n", (wchar_t *)texture_name, id, image.getWidth(), image.getHeight());