summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/quake/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/progs/quake/menu.c')
-rw-r--r--apps/plugins/sdl/progs/quake/menu.c79
1 files changed, 0 insertions, 79 deletions
diff --git a/apps/plugins/sdl/progs/quake/menu.c b/apps/plugins/sdl/progs/quake/menu.c
index 8c67c8672d..2a3229559b 100644
--- a/apps/plugins/sdl/progs/quake/menu.c
+++ b/apps/plugins/sdl/progs/quake/menu.c
@@ -19,10 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19*/ 19*/
20#include "quakedef.h" 20#include "quakedef.h"
21 21
22#ifdef _WIN32
23#include "winquake.h"
24#endif
25
26void (*vid_menudrawfn)(void); 22void (*vid_menudrawfn)(void);
27void (*vid_menukeyfn)(int key); 23void (*vid_menukeyfn)(int key);
28 24
@@ -913,11 +909,7 @@ void M_Net_Draw (void)
913 } 909 }
914 else 910 else
915 { 911 {
916#ifdef _WIN32
917 p = NULL;
918#else
919 p = Draw_CachePic ("gfx/dim_modm.lmp"); 912 p = Draw_CachePic ("gfx/dim_modm.lmp");
920#endif
921 } 913 }
922 914
923 if (p) 915 if (p)
@@ -931,11 +923,7 @@ void M_Net_Draw (void)
931 } 923 }
932 else 924 else
933 { 925 {
934#ifdef _WIN32
935 p = NULL;
936#else
937 p = Draw_CachePic ("gfx/dim_drct.lmp"); 926 p = Draw_CachePic ("gfx/dim_drct.lmp");
938#endif
939 } 927 }
940 928
941 if (p) 929 if (p)
@@ -1036,12 +1024,7 @@ again:
1036//============================================================================= 1024//=============================================================================
1037/* OPTIONS MENU */ 1025/* OPTIONS MENU */
1038 1026
1039#ifdef _WIN32
1040#define OPTIONS_ITEMS 14
1041#else
1042#define OPTIONS_ITEMS 13 1027#define OPTIONS_ITEMS 13
1043#endif
1044
1045#define SLIDER_RANGE 10 1028#define SLIDER_RANGE 10
1046 1029
1047int options_cursor; 1030int options_cursor;
@@ -1051,13 +1034,6 @@ void M_Menu_Options_f (void)
1051 key_dest = key_menu; 1034 key_dest = key_menu;
1052 m_state = m_options; 1035 m_state = m_options;
1053 m_entersound = true; 1036 m_entersound = true;
1054
1055#ifdef _WIN32
1056 if ((options_cursor == 13) && (modestate != MS_WINDOWED))
1057 {
1058 options_cursor = 0;
1059 }
1060#endif
1061} 1037}
1062 1038
1063 1039
@@ -1092,11 +1068,7 @@ void M_AdjustSliders (int dir)
1092 Cvar_SetValue ("sensitivity", sensitivity.value); 1068 Cvar_SetValue ("sensitivity", sensitivity.value);
1093 break; 1069 break;
1094 case 6: // music volume 1070 case 6: // music volume
1095#ifdef _WIN32
1096 bgmvolume.value += dir * 1.0;
1097#else
1098 bgmvolume.value += dir * 0.1; 1071 bgmvolume.value += dir * 0.1;
1099#endif
1100 if (bgmvolume.value < 0) 1072 if (bgmvolume.value < 0)
1101 bgmvolume.value = 0; 1073 bgmvolume.value = 0;
1102 if (bgmvolume.value > 1) 1074 if (bgmvolume.value > 1)
@@ -1136,12 +1108,6 @@ void M_AdjustSliders (int dir)
1136 case 11: // lookstrafe 1108 case 11: // lookstrafe
1137 Cvar_SetValue ("lookstrafe", !lookstrafe.value); 1109 Cvar_SetValue ("lookstrafe", !lookstrafe.value);
1138 break; 1110 break;
1139
1140#ifdef _WIN32
1141 case 13: // _windowed_mouse
1142 Cvar_SetValue ("_windowed_mouse", !_windowed_mouse.value);
1143 break;
1144#endif
1145 } 1111 }
1146} 1112}
1147 1113
@@ -1223,14 +1189,6 @@ void M_Options_Draw (void)
1223 if (vid_menudrawfn) 1189 if (vid_menudrawfn)
1224 M_Print (16, 128, " Video Options"); 1190 M_Print (16, 128, " Video Options");
1225 1191
1226#ifdef _WIN32
1227 if (modestate == MS_WINDOWED)
1228 {
1229 M_Print (16, 136, " Use Mouse");
1230 M_DrawCheckbox (220, 136, _windowed_mouse.value);
1231 }
1232#endif
1233
1234// cursor 1192// cursor
1235 M_DrawCharacter (200, 32 + options_cursor*8, 12+((int)(realtime*4)&1)); 1193 M_DrawCharacter (200, 32 + options_cursor*8, 12+((int)(realtime*4)&1));
1236} 1194}
@@ -1297,16 +1255,6 @@ void M_Options_Key (int k)
1297 else 1255 else
1298 options_cursor = 0; 1256 options_cursor = 0;
1299 } 1257 }
1300
1301#ifdef _WIN32
1302 if ((options_cursor == 13) && (modestate != MS_WINDOWED))
1303 {
1304 if (k == K_UPARROW)
1305 options_cursor = 12;
1306 else
1307 options_cursor = 0;
1308 }
1309#endif
1310} 1258}
1311 1259
1312//============================================================================= 1260//=============================================================================
@@ -1582,7 +1530,6 @@ int msgNumber;
1582int m_quit_prevstate; 1530int m_quit_prevstate;
1583qboolean wasInMenus; 1531qboolean wasInMenus;
1584 1532
1585#ifndef _WIN32
1586char *quitMessage [] = 1533char *quitMessage [] =
1587{ 1534{
1588/* .........1.........2.... */ 1535/* .........1.........2.... */
@@ -1626,7 +1573,6 @@ char *quitMessage [] =
1626 " for you next time! ", 1573 " for you next time! ",
1627 " " 1574 " "
1628}; 1575};
1629#endif
1630 1576
1631void M_Menu_Quit_f (void) 1577void M_Menu_Quit_f (void)
1632{ 1578{
@@ -1684,36 +1630,11 @@ void M_Quit_Draw (void)
1684 m_state = m_quit; 1630 m_state = m_quit;
1685 } 1631 }
1686 1632
1687#ifdef _WIN32
1688 M_DrawTextBox (0, 0, 38, 23);
1689 M_PrintWhite (16, 12, " Quake version 1.09 by id Software\n\n");
1690 M_PrintWhite (16, 28, "Programming Art \n");
1691 M_Print (16, 36, " John Carmack Adrian Carmack\n");
1692 M_Print (16, 44, " Michael Abrash Kevin Cloud\n");
1693 M_Print (16, 52, " John Cash Paul Steed\n");
1694 M_Print (16, 60, " Dave 'Zoid' Kirsch\n");
1695 M_PrintWhite (16, 68, "Design Biz\n");
1696 M_Print (16, 76, " John Romero Jay Wilbur\n");
1697 M_Print (16, 84, " Sandy Petersen Mike Wilson\n");
1698 M_Print (16, 92, " American McGee Donna Jackson\n");
1699 M_Print (16, 100, " Tim Willits Todd Hollenshead\n");
1700 M_PrintWhite (16, 108, "Support Projects\n");
1701 M_Print (16, 116, " Barrett Alexander Shawn Green\n");
1702 M_PrintWhite (16, 124, "Sound Effects\n");
1703 M_Print (16, 132, " Trent Reznor and Nine Inch Nails\n\n");
1704 M_PrintWhite (16, 140, "Quake is a trademark of Id Software,\n");
1705 M_PrintWhite (16, 148, "inc., (c)1996 Id Software, inc. All\n");
1706 M_PrintWhite (16, 156, "rights reserved. NIN logo is a\n");
1707 M_PrintWhite (16, 164, "registered trademark licensed to\n");
1708 M_PrintWhite (16, 172, "Nothing Interactive, Inc. All rights\n");
1709 M_PrintWhite (16, 180, "reserved. Press y to exit\n");
1710#else
1711 M_DrawTextBox (56, 76, 24, 4); 1633 M_DrawTextBox (56, 76, 24, 4);
1712 M_Print (64, 84, quitMessage[msgNumber*4+0]); 1634 M_Print (64, 84, quitMessage[msgNumber*4+0]);
1713 M_Print (64, 92, quitMessage[msgNumber*4+1]); 1635 M_Print (64, 92, quitMessage[msgNumber*4+1]);
1714 M_Print (64, 100, quitMessage[msgNumber*4+2]); 1636 M_Print (64, 100, quitMessage[msgNumber*4+2]);
1715 M_Print (64, 108, quitMessage[msgNumber*4+3]); 1637 M_Print (64, 108, quitMessage[msgNumber*4+3]);
1716#endif
1717} 1638}
1718 1639
1719//============================================================================= 1640//=============================================================================