diff --git a/gtk/src/gtk_preferences.cpp b/gtk/src/gtk_preferences.cpp index 8522a90a..7295417c 100644 --- a/gtk/src/gtk_preferences.cpp +++ b/gtk/src/gtk_preferences.cpp @@ -792,8 +792,9 @@ void Snes9xPreferences::show() dialog->show(); auto result = dialog->run(); - config->preferences_width = get_width(); - config->preferences_height = get_height(); + auto box = get_object("preferences_box"); + config->preferences_width = box->get_width(); + config->preferences_height = box->get_height(); config->current_display_tab = get_object("display_notebook")->get_current_page(); switch (result) diff --git a/gtk/src/gtk_s9xwindow.cpp b/gtk/src/gtk_s9xwindow.cpp index c2e8dd45..d6145c26 100644 --- a/gtk/src/gtk_s9xwindow.cpp +++ b/gtk/src/gtk_s9xwindow.cpp @@ -491,8 +491,9 @@ bool Snes9xWindow::draw(const Cairo::RefPtr &cr) if (!(config->fullscreen) && !(maximized_state)) { - config->window_width = get_width(); - config->window_height = get_height(); + auto vbox = get_object("main_window_vbox"); + config->window_width = vbox->get_width(); + config->window_height = vbox->get_height(); } if (last_width < 0) diff --git a/gtk/src/gtk_shader_parameters.cpp b/gtk/src/gtk_shader_parameters.cpp index 164335b0..40cf4402 100644 --- a/gtk/src/gtk_shader_parameters.cpp +++ b/gtk/src/gtk_shader_parameters.cpp @@ -28,9 +28,8 @@ static inline double snap_to_interval(double value, double interval) static void dialog_response(int response_id) { - gui_config->shader_parameters_width = dialog->get_width(); - gui_config->shader_parameters_height = dialog->get_height(); - + gui_config->shader_parameters_width = dialog->get_vbox()->get_width(); + gui_config->shader_parameters_height = dialog->get_vbox()->get_height(); switch (response_id) { case Gtk::RESPONSE_OK: diff --git a/gtk/src/snes9x.ui b/gtk/src/snes9x.ui index ad2023f9..6f43bb5e 100644 --- a/gtk/src/snes9x.ui +++ b/gtk/src/snes9x.ui @@ -1180,7 +1180,7 @@ - + True False @@ -2685,7 +2685,7 @@ - + True False 2