# HG changeset patch # User diego # Date 1308750516 0 # Node ID 35a12ef532de7a0614711caed6e94a9d83aad734 # Parent bdfb1aeb4b41147eaf24379068c74247f5ec4fba win32 gui: Move static function around to avoid a forward declaration. diff -r bdfb1aeb4b41 -r 35a12ef532de gui/win32/preferences.c --- 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; -}