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.
This commit is contained in:
Simon Howard 2017-02-02 22:06:49 -05:00
parent 9401e974b2
commit ef3d35a48f

View file

@ -226,12 +226,14 @@ void ConfigDisplay(void)
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);