1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00

Added double/normal resize patch by Wojtek Kaniewski <wojtekka at bydg.pdi.net>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1397 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2001-07-28 05:54:02 +00:00
parent 9112174a23
commit fbeeb77050
2 changed files with 21 additions and 1 deletions

View File

@ -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

View File

@ -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: