mirror of
https://github.com/86Box/86Box.git
synced 2026-02-27 17:34:25 -07:00
Port remaining PCem OpenGL renderer features
This commit is contained in:
15
src/config.c
15
src/config.c
@@ -227,6 +227,9 @@ load_general(void)
|
||||
video_framerate = ini_section_get_int(cat, "video_gl_framerate", -1);
|
||||
video_vsync = ini_section_get_int(cat, "video_gl_vsync", 0);
|
||||
|
||||
video_gl_input_scale = ini_section_get_double(cat, "video_gl_input_scale", 1.0);
|
||||
video_gl_input_scale_mode = ini_section_get_int(cat, "video_gl_input_scale_mode", FULLSCR_SCALE_FULL);
|
||||
|
||||
window_remember = ini_section_get_int(cat, "window_remember", 0);
|
||||
if (window_remember) {
|
||||
p = ini_section_get_string(cat, "window_coordinates", NULL);
|
||||
@@ -2398,6 +2401,18 @@ save_general(void)
|
||||
else
|
||||
ini_section_delete_var(cat, "do_auto_pause");
|
||||
|
||||
if (video_gl_input_scale != 1.0) {
|
||||
ini_section_set_double(cat, "video_gl_input_scale", video_gl_input_scale);
|
||||
} else {
|
||||
ini_section_delete_var(cat, "video_gl_input_scale");
|
||||
}
|
||||
|
||||
if (video_gl_input_scale_mode != FULLSCR_SCALE_FULL) {
|
||||
ini_section_set_int(cat, "video_gl_input_scale_mode", video_gl_input_scale_mode);
|
||||
} else {
|
||||
ini_section_delete_var(cat, "video_gl_input_scale_mode");
|
||||
}
|
||||
|
||||
if (force_constant_mouse)
|
||||
ini_section_set_int(cat, "force_constant_mouse", force_constant_mouse);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user