]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
fix several visual studio projects which did not have CONFIG_MENU added
[xonotic/darkplaces.git] / vid_sdl.c
index abb90970eac7c6a031a2f21e582424473331f36f..324800d5368f0dc0eefd7105f66af4f1b30fa2d1 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -2477,7 +2477,7 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode)
        vid_isfullscreen = false;
 #if SDL_MAJOR_VERSION == 1
        {
-               SDL_VideoInfo *vi = SDL_GetVideoInfo();
+               const SDL_VideoInfo *vi = SDL_GetVideoInfo();
                desktop_mode.width = vi->current_w;
                desktop_mode.height = vi->current_h;
                desktop_mode.bpp = vi->vfmt->BitsPerPixel;
@@ -2643,7 +2643,7 @@ static qboolean VID_InitModeSoft(viddef_mode_t *mode)
        vid_isfullscreen = false;
        if (mode->fullscreen) {
 #if SDL_MAJOR_VERSION == 1
-               SDL_VideoInfo *vi = SDL_GetVideoInfo();
+               const SDL_VideoInfo *vi = SDL_GetVideoInfo();
                mode->width = vi->current_w;
                mode->height = vi->current_h;
                mode->bitsperpixel = vi->vfmt->BitsPerPixel;