diff --git a/DOCS/SDL b/DOCS/SDL index a25e31eddf..7c3f3f45bf 100644 --- a/DOCS/SDL +++ b/DOCS/SDL @@ -11,8 +11,7 @@ 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 +N sets normal/double size KNOWN BUGS: - Keys pressed under aalib console driver repeat forever. @@ -22,4 +21,4 @@ Please report problems or bugs with sdl out to the MPlayer-users mailinglist. -- -Felix Bünemann, 2001-07-28 +Felix Bünemann, 2001-08-14 diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index 7b7a0fc754..6426374180 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -1089,10 +1089,7 @@ static void check_events (void) 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 ) { + } else 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; @@ -1100,7 +1097,7 @@ static void check_events (void) if(verbose > 1) printf("SDL: Double size\n"); } } - + else switch(keypressed){ case SDLK_RETURN: if (!firstcheck) { firstcheck = 1; break; }