foxygit / doom Log in
commit ef3d35a48f3527b45dad1d23bba7fe9f6d9d64c7
Author:     Simon Howard <fraggle@soulsphere.org>
AuthorDate: Thu Feb 2 22:06:49 2017 -0500
Commit:     Simon Howard <fraggle@soulsphere.org>
CommitDate: Thu Feb 2 22:06:49 2017 -0500

    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.
---
 src/setup/display.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/setup/display.c b/src/setup/display.c
index 90480eff..79f799b4 100644
--- a/src/setup/display.c
+++ b/src/setup/display.c
@@ -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);