From 01e8f159e45fae7a1f060717d9a677fb34841bc2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 15:23:13 +0000 Subject: [PATCH] Decompile fn_10908 (UIBitmapTab::SendMsg) Batch #12178 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_10908 UIBitmapTab::SendMsg: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIBitmapTab.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Source/UI/Window/UIBitmapTab.cpp b/Source/UI/Window/UIBitmapTab.cpp index e393e8b8..70b4bc59 100644 --- a/Source/UI/Window/UIBitmapTab.cpp +++ b/Source/UI/Window/UIBitmapTab.cpp @@ -57,6 +57,19 @@ int UIBitmapTab::SendMsg(UIWindow*, int message, std::intptr_t argument1, std::i this->geometry.unknown_0030 = argument1; this->Invalidate(); break; + case 75: + this->tabs.clear(); + break; + case 78: + if (argument1) { + const char* tabName = reinterpret_cast(argument1); + const std::string name = FormatOwnedString(tabName, 'a'); + CBitmapRes* bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(name.c_str()))); + if (bitmap) { + this->tabs.push_back(BitmapTabEntry{bitmap->image.height, tabName}); + } + } + break; case 14: if (!this->tabs.empty()) { int width = 0; @@ -73,19 +86,6 @@ int UIBitmapTab::SendMsg(UIWindow*, int message, std::intptr_t argument1, std::i this->Resize(width, height); } break; - case 75: - this->tabs.clear(); - break; - case 78: - if (argument1) { - const char* tabName = reinterpret_cast(argument1); - const std::string name = FormatOwnedString(tabName, 'a'); - CBitmapRes* bitmap = static_cast(ResourceMgr::Instance().Load(Resolve(name.c_str()))); - if (bitmap) { - this->tabs.push_back(BitmapTabEntry{bitmap->image.height, tabName}); - } - } - break; } return 0;