summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-13 13:47:36 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-13 13:47:36 +0000
commitca4dc2a1b3ebfaa2ccf9446f1778cea845982a91 (patch)
treef5eece3d1b6eb3f6095da8203e81c0b75367303b /libvo
parent17e5fab38f51744fa2817e92523f18281be34022 (diff)
downloadmpv-ca4dc2a1b3ebfaa2ccf9446f1778cea845982a91.tar.bz2
mpv-ca4dc2a1b3ebfaa2ccf9446f1778cea845982a91.tar.xz
-bpp changes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@389 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/video_out.c11
-rw-r--r--libvo/video_out.h9
-rw-r--r--libvo/x11_common.c6
3 files changed, 20 insertions, 6 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index ec317e00e8..05898ea7ba 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -31,6 +31,17 @@
#include "../linux/shmem.h"
+// currect resolution/bpp on screen: (should be autodetected by vo_init())
+int vo_depthonscreen=0;
+int vo_screenwidth=0;
+int vo_screenheight=0;
+
+// requested resolution/bpp: (-x -y -bpp options)
+int vo_dwidth=0;
+int vo_dheight=0;
+int vo_dbpp=0;
+
+
//
// Externally visible list of all vo drivers
//
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 4dcb19a570..0eb6cbacee 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -105,4 +105,13 @@ typedef struct vo_functions_s
// NULL terminated array of all drivers
extern vo_functions_t* video_out_drivers[];
+// currect resolution/bpp on screen: (should be autodetected by vo_init())
+extern int vo_depthonscreen;
+extern int vo_screenwidth;
+extern int vo_screenheight;
+
+// requested resolution/bpp: (-x -y -bpp options)
+extern int vo_dwidth;
+extern int vo_dheight;
+extern int vo_dbpp;
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 9402e97e19..b3e10a40be 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -15,12 +15,6 @@
#include <X11/Xutil.h>
#include <X11/Xatom.h>
-int vo_depthonscreen=0;
-int vo_screenwidth=0;
-int vo_screenheight=0;
-int vo_dwidth=0;
-int vo_dheight=0;
-
static int dpms_disabled=0;
static int timeout_save=0;