Mercurial > mplayer.hg
diff libvo/vo_sdl.c @ 1396:3c7f13cb0a8a
Added double/normal resize patch by Wojtek Kaniewski <wojtekka at bydg.pdi.net>
author | atmos4 |
---|---|
date | Sat, 28 Jul 2001 05:54:02 +0000 |
parents | e7d98f8f9459 |
children | d40f2b686846 |
line wrap: on
line diff
--- a/libvo/vo_sdl.c Sat Jul 28 05:36:45 2001 +0000 +++ b/libvo/vo_sdl.c Sat Jul 28 05:54:02 2001 +0000 @@ -1082,6 +1082,24 @@ if(verbose > 1) printf("SDL: Set fullscreen mode\n"); } } + + else if ( keypressed == SDLK_n ) { + if (priv->surface->w != priv->width || priv->surface->h != priv->height) { + priv->surface = SDL_SetVideoMode(priv->width, priv->height, priv->bpp, priv->sdlflags); + priv->windowsize.w = priv->surface->w; + priv->windowsize.h = priv->surface->h; + if(verbose > 1) printf("SDL: Normal size\n"); + } + } + + else if ( keypressed == SDLK_d ) { + if (priv->surface->w != priv->width * 2 || priv->surface->h != priv->height * 2) { + priv->surface = SDL_SetVideoMode(priv->width * 2, priv->height * 2, priv->bpp, priv->sdlflags); + priv->windowsize.w = priv->surface->w; + priv->windowsize.h = priv->surface->h; + if(verbose > 1) printf("SDL: Double size\n"); + } + } else switch(keypressed){ case SDLK_RETURN: