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:
parent
85e6aa68d3
commit
0029665586
110 changed files with 1065 additions and 1186 deletions
|
|
@ -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;
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue