Decompile 2 functions in Source/UI/WindowBackground.cpp

Batch #14485 by Yommy: 0 byte-identical, 2 confirmed by peer review.

- fn_12085 UIWindow::DrawPanelBackground: logic confirmed by peer review
- fn_12086 UIWindow::DrawPanelBackgroundAt: logic confirmed by peer review

Peer-reviewed-by: secret, Tanke, raiken
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-07 12:52:26 +00:00
commit 4b14a82894

View file

@ -26,7 +26,7 @@ void UIWindow::DrawPanelBackground(int y, int width, const char* bitmapName) {
if (std::strlen(bitmapName) != 0) {
auto* bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(bitmapName)));
if (bitmap) {
this->DrawBitmap(0, y, &bitmap->image, false);
this->DrawBitmap(0, y, bitmap, false);
}
return;
}
@ -53,7 +53,7 @@ void UIWindow::DrawPanelBackgroundAt(int x, int y, int width, const char* bitmap
if (bitmapName && std::strlen(bitmapName) != 0) {
auto* bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(bitmapName)));
if (bitmap) {
this->DrawBitmap(x, y, &bitmap->image, false);
this->DrawBitmap(x, y, bitmap, false);
}
return;
}