shithub: choc

Download patch

ref: ef3d35a48f3527b45dad1d23bba7fe9f6d9d64c7
parent: 9401e974b27f1de39b0b9637f659c29c7dbdb971
author: Simon Howard <fraggle@soulsphere.org>
date: Thu Feb 2 17:06:49 EST 2017

setup: Adjust position of display config window.

Move the window down by one row and set the width explicitly so that it
doesn't grow and shrink when fullscreen is enabled/disabled.

Thanks to @AXDOOMER. This fixes #852.

--- a/src/setup/display.c
+++ b/src/setup/display.c
@@ -226,12 +226,14 @@
             sizes_table = TXT_NewTable(3)),
         NULL);
 
+    TXT_SetColumnWidths(window, 42);
+
     // The window is set at a fixed vertical position.  This keeps
     // the top of the window stationary when switching between
     // fullscreen and windowed mode (which causes the window's
     // height to change).
     TXT_SetWindowPosition(window, TXT_HORIZ_CENTER, TXT_VERT_TOP,
-                                  TXT_SCREEN_W / 2, 5);
+                                  TXT_SCREEN_W / 2, 6);
 
     GenerateSizesTable(NULL, sizes_table);