diff --git a/src/gl/render.c b/src/gl/render.c
index 0dc1ac30144082ebe1a292f9bf0e419cfd42fe25..22667f7542880b709f7a543e38cff9aee566428c 100644 (file)
--- a/src/gl/render.c
+++ b/src/gl/render.c
R_reload_textures();
}
R_reload_textures();
}
-static int video_menu_handler (menu_msg_t *msg, const menu_t *m, void *data, int i) {
+static int video_menu_handler (menu_msg_t *msg, const menu_t *m, int i) {
static int cur;
static int w, h, fullscreen;
static char buf[16];
static int cur;
static int w, h, fullscreen;
static char buf[16];
@@ -1935,12 +1935,9 @@ static int video_menu_handler (menu_msg_t *msg, const menu_t *m, void *data, int
return simple_menu_handler(msg, i, __NUM__, &sm, &cur);
}
return simple_menu_handler(msg, i, __NUM__, &sm, &cur);
}
-static const menu_t video_menu = {
- NULL, &video_menu_handler
-};
-
const menu_t *R_menu (void) {
const menu_t *R_menu (void) {
- return &video_menu;
+ static const menu_t m = { video_menu_handler };
+ return &m;
}
const cfg_t *R_args (void) {
}
const cfg_t *R_args (void) {