From 35a3e2df5ecebb0a7f9f317aabd4025be862aec5 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 03:43:17 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Edit/UIEditCtrl.cpp Batch #11772 by Yommy: 2 byte-identical, 0 confirmed by peer review. - fn_10977 UIEditCtrl::MoveCandidateWindow: byte-identical - fn_10978 UIEditCtrl::MoveReadingWindow: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Edit/UIEditCtrl.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Source/UI/Edit/UIEditCtrl.cpp b/Source/UI/Edit/UIEditCtrl.cpp index 0dcab905..63958e20 100644 --- a/Source/UI/Edit/UIEditCtrl.cpp +++ b/Source/UI/Edit/UIEditCtrl.cpp @@ -682,12 +682,7 @@ void UIEditCtrl::MoveCandidateWindow(int x) { int left = x; int top = this->geometry.height + 6; - left += this->geometry.x; - top += this->geometry.y; - for (const UIWindow* node = this->parent; node != nullptr; node = node->parent) { - left += node->geometry.x; - top += node->geometry.y; - } + this->ToScreen(left, top); if (window->geometry.width + left > g_renderer->viewport.width) { left = g_renderer->viewport.width - window->geometry.width; @@ -710,12 +705,7 @@ void UIEditCtrl::MoveReadingWindow(int x) { int left = x; int top = this->geometry.height + 6; - left += this->geometry.x; - top += this->geometry.y; - for (const UIWindow* node = this->parent; node != nullptr; node = node->parent) { - left += node->geometry.x; - top += node->geometry.y; - } + this->ToScreen(left, top); if (window->geometry.width + left > g_renderer->viewport.width) { left = g_renderer->viewport.width - window->geometry.width;