summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2021-04-22 19:07:20 +0100
committerPeterN <peter@fuzzle.org>2021-04-30 17:08:15 +0100
commitaf70195e448e1a934fe921efcb9450ead99cb49e (patch)
tree50751e550a1c1e4ff47d9a93300fefc604c0b9d6
parent1df510c297636652d826c512b009015f3de3a3b8 (diff)
downloadopenttd-af70195e448e1a934fe921efcb9450ead99cb49e.tar.xz
Fix: Tidy up sizing of sprite aligner window sprite list.
-rw-r--r--src/newgrf_debug_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp
index bd78deee9..3a5e05a77 100644
--- a/src/newgrf_debug_gui.cpp
+++ b/src/newgrf_debug_gui.cpp
@@ -863,8 +863,9 @@ struct SpriteAlignerWindow : Window {
size->height = ScaleGUITrad(200);
break;
case WID_SA_LIST:
- resize->height = std::max(11, FONT_HEIGHT_NORMAL + 1);
+ resize->height = FONT_HEIGHT_NORMAL + WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM;
resize->width = 1;
+ fill->height = resize->height;
break;
default:
break;