]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Options menu has a width of 320, not 640
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Nov 2003 11:37:53 +0000 (11:37 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Nov 2003 11:37:53 +0000 (11:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3639 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index f552bfd95275ab6d8a1ef3b1e9456d34cb3a61e9..e19376854a310808ff640e38d847403e3d8a64ed 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -1214,7 +1214,7 @@ void M_Options_PrintCommand(char *s, int enabled)
 {
        if (opty >= 32)
        {
-               DrawQ_Fill(menu_x, menu_y + opty, 640, 8, optnum == optcursor ? (0.5 + 0.2 * sin(realtime * M_PI)) : 0, 0, 0, 0.5, 0);
+               DrawQ_Fill(menu_x, menu_y + opty, 320, 8, optnum == optcursor ? (0.5 + 0.2 * sin(realtime * M_PI)) : 0, 0, 0, 0.5, 0);
                M_ItemPrint(0, opty, s, enabled);
        }
        opty += 8;
@@ -1225,7 +1225,7 @@ void M_Options_PrintCheckbox(char *s, int enabled, int yes)
 {
        if (opty >= 32)
        {
-               DrawQ_Fill(menu_x, menu_y + opty, 640, 8, optnum == optcursor ? (0.5 + 0.2 * sin(realtime * M_PI)) : 0, 0, 0, 0.5, 0);
+               DrawQ_Fill(menu_x, menu_y + opty, 320, 8, optnum == optcursor ? (0.5 + 0.2 * sin(realtime * M_PI)) : 0, 0, 0, 0.5, 0);
                M_ItemPrint(0, opty, s, enabled);
                M_DrawCheckbox(0 + strlen(s) * 8 + 8, opty, yes);
        }
@@ -1237,7 +1237,7 @@ void M_Options_PrintSlider(char *s, int enabled, float value, float minvalue, fl
 {
        if (opty >= 32)
        {
-               DrawQ_Fill(menu_x, menu_y + opty, 640, 8, optnum == optcursor ? (0.5 + 0.2 * sin(realtime * M_PI)) : 0, 0, 0, 0.5, 0);
+               DrawQ_Fill(menu_x, menu_y + opty, 320, 8, optnum == optcursor ? (0.5 + 0.2 * sin(realtime * M_PI)) : 0, 0, 0, 0.5, 0);
                M_ItemPrint(0, opty, s, enabled);
                M_DrawSlider(0 + strlen(s) * 8 + 8, opty, value, minvalue, maxvalue);
        }