shithub: choc

Download patch

ref: 9326506e95b39059718ce02a72a58c43e6f89424
parent: 5e3221964de6a7cadd69dfc88d90a72f2c1648b5
author: Simon Howard <[email protected]>
date: Mon Oct 23 13:59:51 EDT 2006

Shut up compiler warnings.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 718

--- a/setup/mainmenu.c
+++ b/setup/mainmenu.c
@@ -76,16 +76,24 @@
     window = TXT_NewWindow("Main Menu");
 
     TXT_AddWidgets(window,
-          TXT_NewButton2("Configure display", ConfigDisplay, NULL),
-          TXT_NewButton2("Configure keyboard", ConfigKeyboard, NULL),
-          TXT_NewButton2("Configure mouse", ConfigMouse, NULL),
-          TXT_NewButton2("Configure sound", ConfigSound, NULL),
-          TXT_NewButton2("Compatibility", CompatibilitySettings, NULL),
+          TXT_NewButton2("Configure display", 
+                         (TxtWidgetSignalFunc) ConfigDisplay, NULL),
+          TXT_NewButton2("Configure keyboard", 
+                         (TxtWidgetSignalFunc) ConfigKeyboard, NULL),
+          TXT_NewButton2("Configure mouse", 
+                         (TxtWidgetSignalFunc) ConfigMouse, NULL),
+          TXT_NewButton2("Configure sound", 
+                         (TxtWidgetSignalFunc) ConfigSound, NULL),
+          TXT_NewButton2("Compatibility", 
+                         (TxtWidgetSignalFunc) CompatibilitySettings, NULL),
           TXT_NewButton("Save parameters and launch DOOM"),
           TXT_NewStrut(0, 1),
-          TXT_NewButton2("Start a Network game", StartMultiGame, NULL),
-          TXT_NewButton2("Join a Network game", JoinMultiGame, NULL),
-          TXT_NewButton2("Multiplayer configuration", MultiplayerConfig, NULL),
+          TXT_NewButton2("Start a Network game", 
+                         (TxtWidgetSignalFunc) StartMultiGame, NULL),
+          TXT_NewButton2("Join a Network game", 
+                         (TxtWidgetSignalFunc) JoinMultiGame, NULL),
+          TXT_NewButton2("Multiplayer configuration", 
+                         (TxtWidgetSignalFunc) MultiplayerConfig, NULL),
           NULL);
 
     quit_action = TXT_NewWindowAction(KEY_ESCAPE, "Quit");