Should fix behavior for tiled WMs.

This commit is contained in:
Themaister 2011-08-11 05:32:03 +02:00
parent 9e24474047
commit 3f5b6a450e

View File

@ -1109,6 +1109,13 @@ static void* gl_init(const video_info_t *video, const input_driver_t **input, vo
}
SSNES_LOG("GL: Using resolution %ux%u\n", gl->win_width, gl->win_height);
video_info = SDL_GetVideoInfo();
if (gl->win_width != video_info->current_w || gl->win_height != video_info->current_h)
{
gl->win_width = video_info->current_w;
gl->win_height = video_info->current_h;
SSNES_WARN("GL: Did not get requested resolution, got %ux%u ...\n", gl->win_width, gl->win_height);
}
if (!gl_shader_init())
{