Commit 9b05896f authored by michael's avatar michael

Do not call SDL_SetVideoMode() with the same size as previously

as this blanks the window.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22433 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8da0676d
......@@ -965,6 +965,10 @@ static int video_open(VideoState *is){
w = 640;
h = 480;
}
if(screen && is->width == screen->w && screen->w == w
&& is->height== screen->h && screen->h == h)
return 0;
#ifndef __APPLE__
screen = SDL_SetVideoMode(w, h, 0, flags);
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment