[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.50,1.51

Atmosfear atmos4 at mplayer.dev.hu
Sat Jul 28 07:54:05 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv12362/libvo

Modified Files:
	vo_sdl.c 
Log Message:
Added double/normal resize patch by Wojtek Kaniewski <wojtekka at bydg.pdi.net>


Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_sdl.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- vo_sdl.c	27 Jun 2001 11:40:14 -0000	1.50
+++ vo_sdl.c	28 Jul 2001 05:54:02 -0000	1.51
@@ -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:




More information about the MPlayer-cvslog mailing list