Mercurial > repos > blastem
comparison blastem.c @ 1975:3701517d852c
Avoid expensive re-init from switching to external sync after render_init has been called
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 08 May 2020 16:52:32 -0700 |
parents | 9c01945b5d20 |
children | 81df9aa2de9b |
comparison
equal
deleted
inserted
replaced
1974:04b79a725b7f | 1975:3701517d852c |
---|---|
637 char *config_fullscreen = tern_find_path(config, "video\0fullscreen\0", TVAL_PTR).ptrval; | 637 char *config_fullscreen = tern_find_path(config, "video\0fullscreen\0", TVAL_PTR).ptrval; |
638 if (config_fullscreen && !strcmp("on", config_fullscreen)) { | 638 if (config_fullscreen && !strcmp("on", config_fullscreen)) { |
639 fullscreen = !fullscreen; | 639 fullscreen = !fullscreen; |
640 } | 640 } |
641 if (!headless) { | 641 if (!headless) { |
642 if (reader_addr) { | |
643 render_set_external_sync(1); | |
644 } | |
642 render_init(width, height, "BlastEm", fullscreen); | 645 render_init(width, height, "BlastEm", fullscreen); |
643 render_set_drag_drop_handler(on_drag_drop); | 646 render_set_drag_drop_handler(on_drag_drop); |
644 } | 647 } |
645 set_bindings(); | 648 set_bindings(); |
646 | 649 |