Mercurial > mplayer.hg
comparison libvo/vo_directx.c @ 14205:87148f636da2
added colorkey support for vo_directx.
author | joey |
---|---|
date | Tue, 21 Dec 2004 20:31:39 +0000 |
parents | e047e70a9767 |
children | 9c58002671d5 |
comparison
equal
deleted
inserted
replaced
14204:05b78d7d444e | 14205:87148f636da2 |
---|---|
77 extern int vo_fs; | 77 extern int vo_fs; |
78 extern int vo_directrendering; | 78 extern int vo_directrendering; |
79 extern int vo_ontop; | 79 extern int vo_ontop; |
80 extern int vo_rootwin; | 80 extern int vo_rootwin; |
81 extern int vidmode; | 81 extern int vidmode; |
82 extern int vo_colorkey; | |
82 | 83 |
83 /***************************************************************************** | 84 /***************************************************************************** |
84 * DirectDraw GUIDs. | 85 * DirectDraw GUIDs. |
85 * Defining them here allows us to get rid of the dxguid library during | 86 * Defining them here allows us to get rid of the dxguid library during |
86 * the linking stage. | 87 * the linking stage. |
976 } | 977 } |
977 if(!mplayericon)mplayericon=LoadIcon(NULL,IDI_APPLICATION); | 978 if(!mplayericon)mplayericon=LoadIcon(NULL,IDI_APPLICATION); |
978 monitor_rect.right=GetSystemMetrics(SM_CXSCREEN); | 979 monitor_rect.right=GetSystemMetrics(SM_CXSCREEN); |
979 monitor_rect.bottom=GetSystemMetrics(SM_CYSCREEN); | 980 monitor_rect.bottom=GetSystemMetrics(SM_CYSCREEN); |
980 | 981 |
982 windowcolor = vo_colorkey; | |
981 wc.style = CS_HREDRAW | CS_VREDRAW; | 983 wc.style = CS_HREDRAW | CS_VREDRAW; |
982 wc.lpfnWndProc = WndProc; | 984 wc.lpfnWndProc = WndProc; |
983 wc.cbClsExtra = 0; | 985 wc.cbClsExtra = 0; |
984 wc.cbWndExtra = 0; | 986 wc.cbWndExtra = 0; |
985 wc.hInstance = hInstance; | 987 wc.hInstance = hInstance; |