0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

added colorkey support for vo_directx.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14206 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
joey 2004-12-21 20:31:39 +00:00
parent f78f7e615f
commit 90700b67a7
2 changed files with 4 additions and 2 deletions

View File

@ -462,8 +462,8 @@ only video (you can think of that as infinite fps).
.B \-colorkey <number>
Changes the colorkey to an RGB value of your choice.
0x000000 is black and 0xffffff is white.
Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix and
xover video out drivers.
Only supported by the cvidix, fbdev, svga, vesa, winvidix, xmga, xvidix,
xover and directx video out drivers.
.
.TP
.B \-nocolorkey

View File

@ -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;