From d40a1ad8de87ee7de1022432b1ffa8dd8675da1b Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 12:07:23 +0000 Subject: [PATCH] Decompile fn_12088 (UIWindow::DrawButtonBar) Batch #14522 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_12088 UIWindow::DrawButtonBar: logic confirmed by peer review Peer-reviewed-by: secret, SapitoSucio, Tanke Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/WindowBorder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/UI/Window/WindowBorder.cpp b/Source/UI/Window/WindowBorder.cpp index 0cdc32f93..26b9b38ab 100644 --- a/Source/UI/Window/WindowBorder.cpp +++ b/Source/UI/Window/WindowBorder.cpp @@ -112,7 +112,7 @@ int UIWindow::DrawButtonBar(int style, int width, int rows) { barHeight = left->image.height; for (int row = 1; row <= rows; ++row) { - this->DrawBitmap(0, this->geometry.height - row * barHeight, &left->image, false); + this->DrawBitmap(0, this->geometry.height - row * barHeight, left, false); } } @@ -128,7 +128,7 @@ int UIWindow::DrawButtonBar(int style, int width, int rows) { rightWidth = right->image.width; for (int row = 1; row <= rows; ++row) { - this->DrawBitmap(width - rightWidth, this->geometry.height - row * barHeight, &right->image, false); + this->DrawBitmap(width - rightWidth, this->geometry.height - row * barHeight, right, false); } } @@ -150,7 +150,7 @@ int UIWindow::DrawButtonBar(int style, int width, int rows) { for (int row = 1; row <= rows; ++row) { for (int column = 0; column < count; ++column) { - this->DrawBitmap(leftWidth + column * middleWidth, this->geometry.height - row * barHeight, &middle->image, false); + this->DrawBitmap(leftWidth + column * middleWidth, this->geometry.height - row * barHeight, middle, false); } }