1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 19:39:12 +00:00

Change: Set endgame background to match original graphics borders

This commit is contained in:
Richard Wheeler
2025-08-27 21:45:46 +01:00
parent 10e81af663
commit 788e4c3ddf

View File

@@ -49,6 +49,9 @@ struct EndGameHighScoreBaseWindow : Window {
this->DrawWidgets();
/* Fill with the appropriate background colour instead of leaving default window colour */
GfxFillRect(Rect{0, 0, this->width, this->height}, PixelColour{105}, FILLRECT_OPAQUE);
/* Standard background slices are 50 pixels high, but it's designed
* for 480 pixels total. 96% of 500 is 480. */
Dimension dim = GetSpriteSize(this->background_img);