summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-21 20:31:39 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-21 20:31:39 +0000
commit90700b67a7626f4fc24903c716ae6c58ca3452b1 (patch)
tree0d3345ed95478f943217f6f1562ecb27ab4cc258 /libvo
parentf78f7e615f472cd0bb5bb593631af683e931396c (diff)
downloadmpv-90700b67a7626f4fc24903c716ae6c58ca3452b1.tar.bz2
mpv-90700b67a7626f4fc24903c716ae6c58ca3452b1.tar.xz
added colorkey support for vo_directx.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14206 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_directx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index 850c41aec7..6811b2497e 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -79,6 +79,7 @@ extern int vo_directrendering;
extern int vo_ontop;
extern int vo_rootwin;
extern int vidmode;
+extern int vo_colorkey;
/*****************************************************************************
* DirectDraw GUIDs.
@@ -978,6 +979,7 @@ static uint32_t preinit(const char *arg)
monitor_rect.right=GetSystemMetrics(SM_CXSCREEN);
monitor_rect.bottom=GetSystemMetrics(SM_CYSCREEN);
+ windowcolor = vo_colorkey;
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = WndProc;
wc.cbClsExtra = 0;