summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/video_out.h1
-rw-r--r--libvo/vo_directx.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 799c25615c..e16bd2d7c3 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -56,6 +56,7 @@
#define VOCTRL_START_SLICE 21
#define VOCTRL_ONTOP 25
+#define VOCTRL_ROOTWIN 26
// Vo can be used by xover
#define VOCTRL_XOVERLAY_SUPPORT 22
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index d128a5def5..8231f260bd 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -1260,6 +1260,18 @@ static uint32_t control(uint32_t request, void *data, ...)
Directx_ManageDisplay();
}
return VO_TRUE;
+ case VOCTRL_ROOTWIN:
+ if(vidmode)
+ {
+ mp_msg(MSGT_VO, MSGL_ERR,"<vo_directx><ERROR>rootwin has no meaning in exclusive mode\n");
+ }
+ else
+ {
+ if(vo_rootwin) vo_rootwin = 0;
+ else vo_rootwin = 1;
+ Directx_ManageDisplay();
+ }
+ return VO_TRUE;
case VOCTRL_FULLSCREEN:
{
if(vidmode)