diff options
-rw-r--r-- | DOCS/SDL | 4 | ||||
-rw-r--r-- | libvo/vo_sdl.c | 18 |
2 files changed, 21 insertions, 1 deletions
@@ -11,6 +11,8 @@ SDL Keys: 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 @@ Please report problems or bugs with sdl out to the MPlayer-users mailinglist. -- -Felix Bünemann, 2001-06-24 +Felix Bünemann, 2001-07-28 diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index 0230a7895f..43de288ffb 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -1082,6 +1082,24 @@ static void check_events (void) 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: |