[MPlayer-dev-eng] [PATCH] directx -colorkey support
Joey Parrish
joey at nicewarrior.org
Thu Dec 16 13:38:03 CET 2004
Hello,
Attached is a very simple patch to support the -colorkey option in
vo_directx.
I will commit in a couple of days if there are no objections.
--Joey
--
"The tide is turning... the enemy is suffering terrible losses..."
--Gen. Custer
-------------- next part --------------
diff -ur main.sofar/libvo/vo_directx.c main.dev/libvo/vo_directx.c
--- main.sofar/libvo/vo_directx.c 2004-12-08 20:02:42.667761600 -0600
+++ main.dev/libvo/vo_directx.c 2004-12-08 19:45:09.846665600 -0600
@@ -79,6 +79,7 @@
extern int vo_ontop;
extern int vo_rootwin;
extern int vidmode;
+extern int vo_colorkey;
/*****************************************************************************
* DirectDraw GUIDs.
@@ -978,6 +987,7 @@
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;
More information about the MPlayer-dev-eng
mailing list