Fix vertical alignment of text in signs

It's now consistent with the rest of the UI.
This commit is contained in:
Tamás Bálint Misius
2021-01-02 23:24:51 +01:00
parent 7724a60467
commit 88b9084267
2 changed files with 2 additions and 2 deletions

View File

@@ -997,7 +997,7 @@ void Renderer::DrawSigns()
String text = currentSign.getDisplayText(sim, x, y, w, h);
clearrect(x, y, w+1, h);
drawrect(x, y, w+1, h, 192, 192, 192, 255);
drawtext(x+3, y+3, text, 255, 255, 255, 255);
drawtext(x+3, y+4, text, 255, 255, 255, 255);
if (currentSign.ju != sign::None)
{

View File

@@ -170,7 +170,7 @@ void SignWindow::DoDraw()
String text = currentSign.getDisplayText(sim, x, y, w, h);
g->clearrect(x, y, w+1, h);
g->drawrect(x, y, w+1, h, 192, 192, 192, 255);
g->drawtext(x+3, y+3, text, 255, 255, 255, 255);
g->drawtext(x+3, y+4, text, 255, 255, 255, 255);
if (currentSign.ju != sign::None)
{