From 03e489f2d0441f6c510537548faa4b4e60fcfe7e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 04:10:46 +0000 Subject: [PATCH] Decompile fn_12724 (UIShortCutWnd::Slot32) Batch #11657 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_12724 UIShortCutWnd::Slot32: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Shortcuts/ShortcutDetails.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Source/UI/Shortcuts/ShortcutDetails.cpp b/Source/UI/Shortcuts/ShortcutDetails.cpp index 65728e81..518e774f 100644 --- a/Source/UI/Shortcuts/ShortcutDetails.cpp +++ b/Source/UI/Shortcuts/ShortcutDetails.cpp @@ -6,19 +6,6 @@ #include "UI/Window/WindowManagerWindows.h" #include "UI/Window/UIWindowMgr.h" -namespace { - // INLINED - void ScreenPosition(const UIWindow& window, int& x, int& y) { - x = (x + window.geometry.x); - y = (y + window.geometry.y); - - for (const UIWindow* node = window.parent; node; node = node->parent) { - x = (x + node->geometry.x); - y = (y + node->geometry.y); - } - } -} - // OFFSET: 0x009332D0 // FUNCTION: fn_12724 void UIShortCutWnd::Slot32(int x, int y) { @@ -79,7 +66,7 @@ void UIShortCutWnd::Slot32(int x, int y) { int originX = 0; int originY = 0; - ScreenPosition(window, originX, originY); + window.ToScreen(originX, originY); const int targetX = (originX + x); int adjustment = 0;