mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
remember the size after switching back from fullscreen
Originally committed as revision 7391 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fb84155b67
commit
c57d34693b
4
ffplay.c
4
ffplay.c
@ -2281,8 +2281,8 @@ static void event_loop(void)
|
|||||||
if (cur_stream) {
|
if (cur_stream) {
|
||||||
screen = SDL_SetVideoMode(event.resize.w, event.resize.h, 0,
|
screen = SDL_SetVideoMode(event.resize.w, event.resize.h, 0,
|
||||||
SDL_HWSURFACE|SDL_RESIZABLE|SDL_ASYNCBLIT|SDL_HWACCEL);
|
SDL_HWSURFACE|SDL_RESIZABLE|SDL_ASYNCBLIT|SDL_HWACCEL);
|
||||||
cur_stream->width = event.resize.w;
|
screen_width = cur_stream->width = event.resize.w;
|
||||||
cur_stream->height = event.resize.h;
|
screen_height= cur_stream->height= event.resize.h;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_QUIT:
|
case SDL_QUIT:
|
||||||
|
Loading…
Reference in New Issue
Block a user