From 3f42f04ee7659953f6ff8f6ec654310d10e3c2f9 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 27 Jan 2008 23:28:45 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@603 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/defs.c | 4 ++++ polymer/eduke32/source/startgtk.game.c | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/polymer/build/src/defs.c b/polymer/build/src/defs.c index ce46ff517..4af0ca389 100644 --- a/polymer/build/src/defs.c +++ b/polymer/build/src/defs.c @@ -417,7 +417,9 @@ static int defsparser(scriptfile *script) if (scriptfile_getsymbol(script,&pal)) break; if (scriptfile_getnumber(script,&pal1)) break; if (scriptfile_getnumber(script,&pal2)) break; +#if defined(POLYMOST) && defined(USE_OPENGL) setpalconv(pal,pal1,pal2); +#endif } break; case T_ALPHAHACK: @@ -1430,12 +1432,14 @@ case T_REDPAL: case T_BLUEPAL: case T_BROWNPAL: case T_GREYPAL: case T_GREENPAL: } } +#if defined(POLYMOST) && defined(USE_OPENGL) if (palmapbits&&fnB) { int i; for (i=0;i<=25;i++) if (!(palbits&(1<= (unsigned)MAXTILES) { diff --git a/polymer/eduke32/source/startgtk.game.c b/polymer/eduke32/source/startgtk.game.c index c639cb708..19a75234b 100755 --- a/polymer/eduke32/source/startgtk.game.c +++ b/polymer/eduke32/source/startgtk.game.c @@ -197,9 +197,9 @@ static void on_startbutton_clicked(GtkButton *button, gpointer user_data) gtk_main_quit(); } -static void on_sounddrvcombo_changed(GtkComboBox *combobox, gpointer user_data) +/* static void on_sounddrvcombo_changed(GtkComboBox *combobox, gpointer user_data) { -} +} */ static void on_inputmousecheck_toggled(GtkToggleButton *togglebutton, gpointer user_data) { @@ -261,8 +261,8 @@ static GtkWidget *create_window(void) GtkWidget *fullscreencheck; GtkWidget *vmode3dlabel; GtkWidget *inputdevlabel; - GtkWidget *sounddrvlabel; - GtkWidget *sounddrvcombo; +/* GtkWidget *sounddrvlabel; + GtkWidget *sounddrvcombo; */ GtkWidget *inputmousecheck; GtkWidget *inputjoycheck; GtkWidget *vmode3dcombo; @@ -356,7 +356,7 @@ static GtkWidget *create_window(void) gtk_fixed_put(GTK_FIXED(configlayout), inputdevlabel, 0, 120); gtk_widget_set_size_request(inputdevlabel, 88, 20); gtk_misc_set_alignment(GTK_MISC(inputdevlabel), 0, 0.5); - +/* sounddrvlabel = gtk_label_new_with_mnemonic("S_ound driver:"); gtk_widget_show(sounddrvlabel); gtk_fixed_put(GTK_FIXED(configlayout), sounddrvlabel, 0, 40); @@ -370,7 +370,7 @@ static GtkWidget *create_window(void) gtk_widget_add_accelerator(sounddrvcombo, "grab_focus", accel_group, GDK_O, GDK_MOD1_MASK, GTK_ACCEL_VISIBLE); - +*/ inputmousecheck = gtk_check_button_new_with_mnemonic("Mo_use"); gtk_widget_show(inputmousecheck); gtk_fixed_put(GTK_FIXED(configlayout), inputmousecheck, 88, 120); @@ -562,9 +562,9 @@ static GtkWidget *create_window(void) g_signal_connect((gpointer) fullscreencheck, "toggled", G_CALLBACK(on_fullscreencheck_toggled), NULL); - g_signal_connect((gpointer) sounddrvcombo, "changed", +/* g_signal_connect((gpointer) sounddrvcombo, "changed", G_CALLBACK(on_sounddrvcombo_changed), - NULL); + NULL);*/ g_signal_connect((gpointer) inputmousecheck, "toggled", G_CALLBACK(on_inputmousecheck_toggled), NULL); @@ -593,7 +593,7 @@ static GtkWidget *create_window(void) // Associate labels with their controls gtk_label_set_mnemonic_widget(GTK_LABEL(vmode3dlabel), vmode3dcombo); - gtk_label_set_mnemonic_widget(GTK_LABEL(sounddrvlabel), sounddrvcombo); +// gtk_label_set_mnemonic_widget(GTK_LABEL(sounddrvlabel), sounddrvcombo); gtk_label_set_mnemonic_widget(GTK_LABEL(gamelabel), gamelist); /* Store pointers to all widgets, for use by lookup_widget(). */ @@ -607,8 +607,8 @@ static GtkWidget *create_window(void) GLADE_HOOKUP_OBJECT(startwin, fullscreencheck, "fullscreencheck"); GLADE_HOOKUP_OBJECT(startwin, vmode3dlabel, "vmode3dlabel"); GLADE_HOOKUP_OBJECT(startwin, inputdevlabel, "inputdevlabel"); - GLADE_HOOKUP_OBJECT(startwin, sounddrvlabel, "sounddrvlabel"); - GLADE_HOOKUP_OBJECT(startwin, sounddrvcombo, "sounddrvcombo"); +/* GLADE_HOOKUP_OBJECT(startwin, sounddrvlabel, "sounddrvlabel"); + GLADE_HOOKUP_OBJECT(startwin, sounddrvcombo, "sounddrvcombo"); */ GLADE_HOOKUP_OBJECT(startwin, inputmousecheck, "inputmousecheck"); GLADE_HOOKUP_OBJECT(startwin, inputjoycheck, "inputjoycheck"); GLADE_HOOKUP_OBJECT(startwin, vmode3dcombo, "vmode3dcombo");