[MPlayer-cvslog] r33678 - trunk/libvo/vo_directx.c
reimar
subversion at mplayerhq.hu
Sun Jun 19 21:02:02 CEST 2011
Author: reimar
Date: Sun Jun 19 21:02:02 2011
New Revision: 33678
Log:
Move check_events function to avoid forward declaration.
Modified:
trunk/libvo/vo_directx.c
Modified: trunk/libvo/vo_directx.c
==============================================================================
--- trunk/libvo/vo_directx.c Sun Jun 19 20:57:57 2011 (r33677)
+++ trunk/libvo/vo_directx.c Sun Jun 19 21:02:02 2011 (r33678)
@@ -463,22 +463,6 @@ static uint32_t Directx_InitDirectDraw(v
return 0;
}
-static uint32_t Directx_ManageDisplay(void);
-
-static void check_events(void)
-{
- int evt = vo_w32_check_events();
- if (evt & (VO_EVENT_RESIZE | VO_EVENT_MOVE))
- Directx_ManageDisplay();
- if (evt & (VO_EVENT_RESIZE | VO_EVENT_MOVE | VO_EVENT_EXPOSE)) {
- HDC dc = vo_w32_get_dc(vo_w32_window);
- RECT r;
- GetClientRect(vo_w32_window, &r);
- FillRect(dc, &r, vo_fs || vidmode ? blackbrush : colorbrush);
- vo_w32_release_dc(vo_w32_window, dc);
- }
-}
-
static uint32_t Directx_ManageDisplay(void)
{
HRESULT ddrval;
@@ -647,6 +631,20 @@ static uint32_t Directx_ManageDisplay(vo
return 0;
}
+static void check_events(void)
+{
+ int evt = vo_w32_check_events();
+ if (evt & (VO_EVENT_RESIZE | VO_EVENT_MOVE))
+ Directx_ManageDisplay();
+ if (evt & (VO_EVENT_RESIZE | VO_EVENT_MOVE | VO_EVENT_EXPOSE)) {
+ HDC dc = vo_w32_get_dc(vo_w32_window);
+ RECT r;
+ GetClientRect(vo_w32_window, &r);
+ FillRect(dc, &r, vo_fs || vidmode ? blackbrush : colorbrush);
+ vo_w32_release_dc(vo_w32_window, dc);
+ }
+}
+
//find out supported overlay pixelformats
static uint32_t Directx_CheckOverlayPixelformats(void)
{
More information about the MPlayer-cvslog
mailing list