summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-02 22:12:28 +0000
committeratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-02 22:12:28 +0000
commit883fb9dce18e09284f9acd421560f489f2bffad2 (patch)
treeebad4fe468a48208a8f8dd282dce1da7e4f62dd1 /libvo
parentab14aa5323862a597ad00ba8c0214e77461b99bb (diff)
downloadmpv-883fb9dce18e09284f9acd421560f489f2bffad2.tar.bz2
mpv-883fb9dce18e09284f9acd421560f489f2bffad2.tar.xz
Some fixups for SDL/aalib.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@952 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_sdl.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c
index 619d250156..57b0106941 100644
--- a/libvo/vo_sdl.c
+++ b/libvo/vo_sdl.c
@@ -194,6 +194,9 @@ static struct sdl_priv_s {
/* fullscreen behaviour; see init */
int fulltype;
+ /* is X running (0/1) */
+ int X;
+
#ifdef HAVE_X11
/* X11 Resolution */
int XWidth, XHeight;
@@ -638,6 +641,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3
XScreen = DefaultScreen(XDisplay);
priv->XWidth = DisplayWidth(XDisplay, XScreen);
priv->XHeight = DisplayHeight(XDisplay, XScreen);
+ priv->X = 1;
if(verbose) printf("SDL: X11 Resolution %ix%i\n", priv->XWidth, priv->XHeight);
saver_off(XDisplay);
XCloseDisplay(XDisplay);
@@ -707,7 +711,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3
set_fullmode(priv->fullmode);
}
else {
- if((strcmp(priv->driver, "x11") == 0) || (strcmp(priv->driver, "aalib") == 0)) {
+ if((strcmp(priv->driver, "x11") == 0) || ((strcmp(priv->driver, "aalib") == 0) && priv->X)) {
if(verbose) printf("SDL: setting windowed mode\n");
#ifdef HAVE_X11
priv->surface = SDL_SetVideoMode (res.w, res.h, priv->bpp, priv->sdlflags);
@@ -716,11 +720,11 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3
#endif
}
else {
- if(verbose) printf("SDL: setting nonzoomed fullscreen with modeswitching\n");
- printf("SDL: Info - please use -zoom switch to scale video\n");
+ if(verbose) printf("SDL: setting zoomed fullscreen with modeswitching\n");
+ printf("SDL: Info - please use -vm switch instead if you don't want scaled video\n");
priv->surface = NULL;
- priv->fulltype = VM;
+ priv->fulltype = ZOOM;
set_fullmode(priv->fullmode);
}
}