mirror of https://github.com/snes9xgit/snes9x.git
Set output window size.
This commit is contained in:
parent
32633bd664
commit
a48cbf72da
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue