X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=vid_sdl.c;h=324800d5368f0dc0eefd7105f66af4f1b30fa2d1;hp=abb90970eac7c6a031a2f21e582424473331f36f;hb=168c67550738c884647609f43629688f8bf4d5f4;hpb=bd6ea691f42e1788efd6bb38447f889d03b9f089 diff --git a/vid_sdl.c b/vid_sdl.c index abb90970..324800d5 100644 --- 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;