From 5fc913874a5140980f7ab5f2cbb646afca5fc362 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 29 Oct 2026 23:29:07 +0000 Subject: [PATCH] Decompile fn_10796 (UIBitmapEditCtrl::Paint) Batch #3799 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_10796 UIBitmapEditCtrl::Paint: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena, Yommy Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Edit/UIEditVariants.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/UI/Edit/UIEditVariants.cpp b/Source/UI/Edit/UIEditVariants.cpp index 41c13c76..00621d20 100644 --- a/Source/UI/Edit/UIEditVariants.cpp +++ b/Source/UI/Edit/UIEditVariants.cpp @@ -130,6 +130,14 @@ void UIEditCtrl3::Slot35(int value) { } // OFFSET: 0x0085BB60 +// FUNCTION: fn_10796 +void UIBitmapEditCtrl::Paint() { + this->ClearSurface(0xFFFFFFFF); + CBitmapRes* bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(this->bitmapName.c_str()))); + this->DrawBitmap(0, 0, bitmap ? &bitmap->image : nullptr, false); + this->textY = 3; + this->PaintText(); +} // OFFSET: 0x0085EB50