Commit 2a014f45 authored by michael's avatar michael

remember the size after switching back from fullscreen


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7391 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b100a241
......@@ -2281,8 +2281,8 @@ static void event_loop(void)
if (cur_stream) {
screen = SDL_SetVideoMode(event.resize.w, event.resize.h, 0,
SDL_HWSURFACE|SDL_RESIZABLE|SDL_ASYNCBLIT|SDL_HWACCEL);
cur_stream->width = event.resize.w;
cur_stream->height = event.resize.h;
screen_width = cur_stream->width = event.resize.w;
screen_height= cur_stream->height= event.resize.h;
}
break;
case SDL_QUIT:
......
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