Mercurial > mplayer.hg
changeset 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 | a721a2b91d3d |
children | 225b8fb7653f |
files | DOCS/SDL libvo/vo_sdl.c |
diffstat | 2 files changed, 21 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/DOCS/SDL Sat Jul 28 05:36:45 2001 +0000 +++ b/DOCS/SDL Sat Jul 28 05:54:02 2001 +0000 @@ -11,6 +11,8 @@ F toggles fullscreen/windowed mode C cycles available fullscreen modes W/S mappings for * and / (mixer control) +N sets normal size +D sets double size KNOWN BUGS: - Keys pressed under aalib console driver repeat forever. @@ -20,4 +22,4 @@ mailinglist. -- -Felix Bünemann, 2001-06-24 +Felix Bünemann, 2001-07-28
--- 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: