From 69db5bb7f00835d416a762c8448a0e825ff8f5cd Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 04:51:43 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Window/UIControl.cpp Batch #13067 by SapitoSucio: 2 byte-identical, 0 confirmed by peer review. - fn_14579 CUIEditCtrl::Invalidate: byte-identical - fn_14522 CUITextViewer::SetBackgroundColor: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Window/UIControl.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Source/UI/Window/UIControl.cpp b/Source/UI/Window/UIControl.cpp index b7627468..9e234aa7 100644 --- a/Source/UI/Window/UIControl.cpp +++ b/Source/UI/Window/UIControl.cpp @@ -1212,7 +1212,12 @@ void CUIEditCtrl::Paint() { // OFFSET: 0x009ED5A0 // FUNCTION: fn_14579 void CUIEditCtrl::Invalidate() { - this->Root()->InvalidateChildren(); + UIWindow* window = this; + while (window->parent != nullptr) { + window = window->parent; + } + + window->InvalidateChildren(); } // OFFSET: 0x009F0780 @@ -2355,8 +2360,10 @@ void CUITextViewer::SetTextOffset(int x, int y) { // FUNCTION: fn_14522 void CUITextViewer::SetBackgroundColor(std::uint32_t value) { this->backgroundColor = value; - this->padding->color = value; - this->padding->Invalidate(); + + CUIPadding* padding = this->padding; + padding->color = value; + padding->Invalidate(); } // OFFSET: 0x009EA810