Set output window size.

This commit is contained in:
Brandon Wright 2018-10-22 14:53:12 -05:00
parent 32633bd664
commit a48cbf72da
2 changed files with 5 additions and 3 deletions

View File

@ -674,6 +674,8 @@ S9xOpenGLDisplayDriver::resize_window (int width, int height)
(
wl.resize (width, height);
wl.swap_interval (config->sync_to_vblank);
output_window_width = width;
output_window_height = height;
return;
)
@ -729,6 +731,9 @@ S9xOpenGLDisplayDriver::init_gl (void)
if (!wl.create_egl_context (256, 224))
return 0;
output_window_width = 256;
output_window_height = 224;
wl.make_current ();
return 1;

View File

@ -846,9 +846,6 @@ Snes9xPreferences::get_settings_from_dialog (void)
if (config->force_inverted_byte_order != get_check ("force_inverted_byte_order"))
gfx_needs_restart = 1;
#ifdef USE_OPENGL
#endif
config->full_screen_on_open = get_check ("full_screen_on_open");
Settings.DisplayFrameRate = get_check ("show_frame_rate");
config->scale_to_fit = get_check ("scale_to_fit");