ref: bd20fc62a36475e7a9fff269784d0f1e5c1128b4
parent: 2a60e32a3a2b0001a2dc9fc7391a2afcadb0bfa9
author: Simon Howard <[email protected]>
date: Thu May 21 15:18:38 EDT 2009
Set display settings window position based on screen dimensions, rather than hard coding position. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1527
--- a/setup/display.c
+++ b/setup/display.c
@@ -384,7 +384,8 @@
window = TXT_NewWindow("Display Configuration");
- TXT_SetWindowPosition(window, TXT_HORIZ_CENTER, TXT_VERT_TOP, 40, 5);
+ TXT_SetWindowPosition(window, TXT_HORIZ_CENTER, TXT_VERT_TOP,
+ TXT_SCREEN_W / 2, 5);
TXT_AddWidgets(window,
fs_checkbox = TXT_NewCheckBox("Fullscreen", &fullscreen),