Fix caption 22 widget text rendering (#1124)

This commit is contained in:
Aaron van Geffen 2021-08-23 10:47:48 +02:00 committed by GitHub
parent d793467167
commit 070ec04888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
21.08+ (???)
------------------------------------------------------------------------
- Fix: [#1108] Road selection not being remembered.
- Fix: [#1124] Confirmation prompt captions are not rendered correctly.
- Change: [#1104] Exceptions now trigger a message box popup, instead of only being written to the console.
21.08 (2021-08-12)

View File

@ -593,8 +593,8 @@ namespace OpenLoco::Ui
Gfx::fillRect(*context, l + 1, t + 1, r - 1, b - 1, 0x2000000 | 46);
int16_t width = r - l - 4 - 10;
int16_t y = t + window->y + 1;
int16_t x = l + window->x + 2 + (width / 2);
int16_t y = t + 1;
int16_t x = l + 2 + (width / 2);
Gfx::drawStringCentredClipped(*context, x, y, width, Colour::white | FormatFlags::textflag_5, text, _commonFormatArgs);
}