From f74ffe4da4a29f77127df0b8924ce828f6c24f54 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 22:55:33 +0000 Subject: [PATCH] Decompile fn_10795 (UIBitmapButton::Paint) Batch #12457 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_10795 UIBitmapButton::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas, KWDev, kyoshi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Buttons/UIBitmapButton.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/UI/Buttons/UIBitmapButton.cpp b/Source/UI/Buttons/UIBitmapButton.cpp index cc871946..7681d9bd 100644 --- a/Source/UI/Buttons/UIBitmapButton.cpp +++ b/Source/UI/Buttons/UIBitmapButton.cpp @@ -47,18 +47,18 @@ void UIBitmapButton::Paint() { switch (this->geometry.unknown_0030) { case 0: - bitmap = static_cast(ResourceMgr::Instance().Load(this->m_names[0].c_str())); + bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(this->m_names[0].c_str()))); break; case 1: - bitmap = static_cast(ResourceMgr::Instance().Load(this->m_names[1].c_str())); + bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(this->m_names[1].c_str()))); break; case 2: - bitmap = static_cast(ResourceMgr::Instance().Load(this->m_names[2].c_str())); + bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(this->m_names[2].c_str()))); break; } if (this->m_disabled != 0 && !this->m_names[3].empty()) { - bitmap = static_cast(ResourceMgr::Instance().Load(this->m_names[3].c_str())); + bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(this->m_names[3].c_str()))); } this->DrawBitmap(0, 0, bitmap ? &bitmap->image : nullptr, false);