# HG changeset patch # User reimar # Date 1308510122 0 # Node ID b213f28fc17a7c429bddfe45c7eccee90abce528 # Parent d3ea6cda99b057c88f20fe1fcecb21f2b91716cf Move check_events function to avoid forward declaration. diff -r d3ea6cda99b0 -r b213f28fc17a libvo/vo_directx.c --- a/libvo/vo_directx.c Sun Jun 19 18:57:57 2011 +0000 +++ b/libvo/vo_directx.c Sun Jun 19 19:02:02 2011 +0000 @@ -463,22 +463,6 @@ 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 @@ 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) {