#define M_PROG_FILENAME "menu.dat"
#define M_NAME "menu"
-#define M_MAX_EDICTS (1 << 12) // should be enough for a menu
+#define M_MAX_EDICTS 32768 // hopefully won't have to increase this again anytime soon...
enum m_state_e {
m_none,
m_options_effects,
m_options_graphics,
m_options_colorcontrol,
- m_reset
+ m_reset,
+ m_modlist
};
extern enum m_state_e m_state;
// hard-coded menus
//
void M_Init (void);
-void M_Keydown (int key);
+void M_KeyEvent (int key);
void M_Draw (void);
void M_ToggleMenu_f (void);
// menu prog menu
//
void MP_Init (void);
-void MP_Keydown (int key);
+void MP_KeyEvent (int key);
void MP_Draw (void);
void MP_ToggleMenu_f (void);
void MP_Shutdown (void);*/
void MR_Init_Commands (void);
void MR_Init (void);
void MR_Restart (void);
-extern void (*MR_Keydown) (int key, char ascii);
+extern void (*MR_KeyEvent) (int key, char ascii, qboolean downevent);
extern void (*MR_Draw) (void);
extern void (*MR_ToggleMenu_f) (void);
extern void (*MR_Shutdown) (void);
+
+typedef struct video_resolution_s
+{
+ const char *type;
+ int width, height;
+ int conwidth, conheight;
+ double pixelheight; // pixel aspect
+}
+video_resolution_t;
+extern video_resolution_t video_resolutions[];
#endif