changeset 33590:b213f28fc17a

Move check_events function to avoid forward declaration.
author reimar
date Sun, 19 Jun 2011 19:02:02 +0000
parents d3ea6cda99b0
children d336a7b03220
files libvo/vo_directx.c
diffstat 1 files changed, 14 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- 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)
 {