shithub: choc

Download patch

ref: e40651fd4de6f6431d51be0d5418fdba7a9ebce6
parent: a80aa343a53c3dd3db2434a52d70de72ec4df955
author: Simon Howard <fraggle@gmail.com>
date: Sat Apr 5 14:28:09 EDT 2014

setup: Adjust positioning of sound dialog.

When configuring Chocolate Strife the sound dialog can become quite
tall, and the dialog is visibly uncentered vertically. Move it up
slightly to counterbalance it.

--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -244,7 +244,7 @@
     window = TXT_NewWindow("Sound configuration");
 
     TXT_SetWindowPosition(window, TXT_HORIZ_CENTER, TXT_VERT_TOP,
-                                  TXT_SCREEN_W / 2, 6);
+                                  TXT_SCREEN_W / 2, 5);
 
     TXT_AddWidgets(window,
                TXT_NewSeparator("Sound effects"),
@@ -251,7 +251,7 @@
                sfx_table = TXT_NewTable(2),
                NULL);
 
-    TXT_SetColumnWidths(sfx_table, 20, 14);
+    TXT_SetColumnWidths(sfx_table, 19, 15);
 
     TXT_AddWidgets(sfx_table,
                    TXT_NewLabel("Sound effects"),
@@ -280,7 +280,7 @@
                extra_table = TXT_NewTable(1),
                NULL);
 
-    TXT_SetColumnWidths(music_table, 20, 14);
+    TXT_SetColumnWidths(music_table, 19, 15);
 
     TXT_AddWidgets(music_table,
                    TXT_NewLabel("Music"),