Maintenance: Stage 0 resubmit (identical to #10090; that and #10084 failed only on Source/Client/Session.cpp with an empty log, consi

Batch #10096 by ragnarok-clanker: forced by an admin (72 lower score(s), 364 changed function(s)); checked with 394 compiled unit(s), including every includer of Source/UI/Window/UIWindow.h.
This commit is contained in:
ragnarok-clanker 2026-11-02 16:03:53 +00:00
commit 0029665586
110 changed files with 1065 additions and 1186 deletions

View file

@ -44,7 +44,7 @@ void UIBmpTextButton::Paint() {
if (!this->text.empty()) {
const auto draw = [&](int x, int y, int height, unsigned color, unsigned char bold) {
this->DrawTextAt(this->m_buttonContext->fonts, this->m_buttonContext->locale, x, y, this->text.c_str(), 0, 0, height, color, bold, 0);
this->DrawTextAt(x, y, this->text.c_str(), 0, 0, height, color, bold, 0);
};
if (style) {
@ -58,7 +58,7 @@ void UIBmpTextButton::Paint() {
const int pressedOffset = disabled || state == 2 ? 1 : 0;
draw((style->x + pressedOffset), (style->y + pressedOffset), style->height, style->color, style->bold);
} else {
const int width = this->TextWidth(this->m_buttonContext->fonts, this->m_buttonContext->locale, this->text.c_str(), 0, 0, 12, 0, 0);
const int width = this->TextWidth(this->text.c_str(), 0, 0, 12, 0, 0);
int height;
{