1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Take line heights into account in Error windows.

This commit is contained in:
Aaron van Geffen
2017-10-20 13:12:17 +02:00
committed by Michael Steenbeek
parent 4fe70294e2
commit 01b92b06fd

View File

@@ -20,6 +20,7 @@
#include <openrct2-ui/windows/Window.h>
#include <openrct2/audio/audio.h>
#include <openrct2/drawing/font.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>
@@ -119,7 +120,7 @@ rct_window * window_error_open(rct_string_id title, rct_string_id message)
_window_error_num_lines = numLines;
width = width + 3;
height = (numLines + 1) * 10 + 4;
height = (numLines + 1) * font_get_line_height(gCurrentFontSpriteBase) + 4;
window_error_widgets[WIDX_BACKGROUND].right = width;
window_error_widgets[WIDX_BACKGROUND].bottom = height;