changeset 33619:35a12ef532de

win32 gui: Move static function around to avoid a forward declaration.
author diego
date Wed, 22 Jun 2011 13:48:36 +0000
parents bdfb1aeb4b41
children 565d6b4c90e9
files gui/win32/preferences.c
diffstat 1 files changed, 18 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/preferences.c	Wed Jun 22 13:48:31 2011 +0000
+++ b/gui/win32/preferences.c	Wed Jun 22 13:48:36 2011 +0000
@@ -38,7 +38,24 @@
 #include "help_mp.h"
 #include "dialogs.h"
 
-static void set_defaults(void);
+
+static void set_defaults(void)
+{
+    proc_priority = "normal";
+    vo_doublebuffering = 1;
+    vo_directrendering = 0;
+    frame_dropping = 0;
+    soft_vol = 0;
+    gtkAONorm = 0;
+    gtkAOExtraStereo = 0;
+    gtkAOExtraStereoMul = 1.0;
+    audio_delay = 0.0;
+    sub_window = 1;
+    gtkCacheOn = 0;
+    gtkCacheSize = 2048;
+    gtkAutoSyncOn = 0;
+    gtkAutoSync = 0;
+}
 
 static LRESULT CALLBACK PrefsWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
 {
@@ -694,21 +711,3 @@
    ShowWindow(hWnd, SW_SHOW);
    UpdateWindow(hWnd);
 }
-
-static void set_defaults(void)
-{
-    proc_priority = "normal";
-    vo_doublebuffering = 1;
-    vo_directrendering = 0;
-    frame_dropping = 0;
-    soft_vol = 0;
-    gtkAONorm = 0;
-    gtkAOExtraStereo = 0;
-    gtkAOExtraStereoMul = 1.0;
-    audio_delay = 0.0;
-    sub_window = 1;
-    gtkCacheOn = 0;
-    gtkCacheSize = 2048;
-    gtkAutoSyncOn = 0;
-    gtkAutoSync = 0;
-}