gtk: added option in video config for SDL.ClipSides

This commit is contained in:
punkrockguy318 2011-10-19 02:29:35 +00:00
parent ffe7741ab7
commit 119d7cccc4
2 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,4 @@
18-octo-2011 - prg318 - gtk: new video option for double buffering
18-octo-2011 - prg318 - gtk: new video option for double buffering and ClipSides
18-octo-2011 - prg318 - sdl: GTK3 support is now functional. Set GTK3 to 1 in the SConstruct to try it out.
18-octo-2011 - prg318 - no longer use depreciated gtk2 functions
18-octo-2011 - prg318 - getSDLKey tool added to assist in remapping hotkeys

View File

@ -732,6 +732,7 @@ void openVideoConfig()
GtkWidget* palChk;
GtkWidget* ppuChk;
GtkWidget* spriteLimitChk;
GtkWidget* clipSidesChk;
GtkWidget* xscaleSpin;
GtkWidget* yscaleSpin;
GtkWidget* xscaleLbl;
@ -846,6 +847,17 @@ void openVideoConfig()
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(spriteLimitChk), 1);
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(spriteLimitChk), 0);
// clip sides check
clipSidesChk = gtk_check_button_new_with_label("Clip Sides");
g_signal_connect(clipSidesChk, "clicked", G_CALLBACK(toggleOption), (gpointer)"SDL.ClipSides");
// sync with config
buf = 0;
g_config->getOption("SDL.ClipSides", &buf);
if(buf)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(clipSidesChk), 1);
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(clipSidesChk), 0);
// xscale / yscale
xscaleHbox = gtk_hbox_new(FALSE, 5);
@ -880,6 +892,7 @@ void openVideoConfig()
gtk_box_pack_start(GTK_BOX(vbox), palChk, FALSE, FALSE,5);
gtk_box_pack_start(GTK_BOX(vbox), ppuChk, FALSE, FALSE, 5);
gtk_box_pack_start(GTK_BOX(vbox), spriteLimitChk, FALSE, FALSE, 5);
gtk_box_pack_start(GTK_BOX(vbox), clipSidesChk, FALSE, FALSE, 5);
gtk_box_pack_start(GTK_BOX(vbox), xscaleHbox, FALSE, FALSE, 5);
gtk_box_pack_start(GTK_BOX(vbox), yscaleHbox, FALSE, FALSE, 5);