[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.105,1.106
Alex Beregszaszi
alex at mplayerhq.hu
Fri Sep 26 20:08:24 CEST 2003
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv22971/libvo
Modified Files:
vo_sdl.c
Log Message:
initial MorphOS/Amiga (GeekGadgets) support
Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_sdl.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -r1.105 -r1.106
--- vo_sdl.c 7 Sep 2003 18:15:47 -0000 1.105
+++ vo_sdl.c 26 Sep 2003 18:08:10 -0000 1.106
@@ -448,7 +448,7 @@
#ifdef SDL_NOHWSURFACE
if(verbose) printf("SDL: using software-surface\n");
priv->sdlflags = SDL_SWSURFACE|SDL_RESIZABLE|SDL_ASYNCBLIT|SDL_ANYFORMAT;
- priv->sdlfullflags = SDL_SWSURFACE|SDL_FULLSCREEN|SDL_DOUBLEBUF|SDL_ASYNCBLIT|SDL_ANYFORMAT;
+ priv->sdlfullflags = SDL_SWSURFACE|SDL_FULLSCREEN|SDL_ASYNCBLIT|SDL_ANYFORMAT;
#else
/*if((strcmp(priv->driver, "dga") == 0) && (priv->mode)) {
if(verbose) printf("SDL: using software-surface\n");
@@ -458,12 +458,15 @@
else { */
if(verbose) printf("SDL: using hardware-surface\n");
priv->sdlflags = SDL_HWSURFACE|SDL_RESIZABLE|SDL_ASYNCBLIT|SDL_HWACCEL/*|SDL_ANYFORMAT*/;
- priv->sdlfullflags = SDL_HWSURFACE|SDL_FULLSCREEN|SDL_DOUBLEBUF|SDL_ASYNCBLIT|SDL_HWACCEL/*|SDL_ANYFORMAT*/;
+ priv->sdlfullflags = SDL_HWSURFACE|SDL_FULLSCREEN|SDL_ASYNCBLIT|SDL_HWACCEL/*|SDL_ANYFORMAT*/;
//}
#endif
-
+
+#ifndef AMIGA
+ sdl->sdlfullflags |= SDL_DOUBLEBUF;
if (vo_doublebuffering)
priv->sdlflags |= SDL_DOUBLEBUF;
+#endif
/* Setup Keyrepeats (500/30 are defaults) */
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, 100 /*SDL_DEFAULT_REPEAT_INTERVAL*/);
@@ -895,9 +898,8 @@
||(strcmp(priv->driver, "windib") == 0)
||(strcmp(priv->driver, "directx") == 0)
||(strcmp(priv->driver, "Quartz") == 0)
- ||((strcmp(priv->driver, "aalib") == 0)
- && priv->X)
- ||(strcmp(priv->driver, "Quartz") == 0)) {
+ ||(strcmp(priv->driver, "cgx") == 0)
+ ||((strcmp(priv->driver, "aalib") == 0) && priv->X)){
if(verbose) printf("SDL: setting windowed mode\n");
set_video_mode(priv->dstwidth, priv->dstheight, priv->bpp, priv->sdlflags);
}
More information about the MPlayer-cvslog
mailing list