summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
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;