diff options
author | neonloop | 2021-08-07 20:28:34 +0000 |
---|---|---|
committer | neonloop | 2021-08-07 20:28:34 +0000 |
commit | 8ad26356f5e92bd396e58290217da55858345a4e (patch) | |
tree | 8c08b9e62f36170e36514a4d1f397990e881104e /core.c | |
parent | b148bcce05254c7ebe0ad855e5f1e958968a0bb9 (diff) | |
download | picoarch-8ad26356f5e92bd396e58290217da55858345a4e.tar.gz picoarch-8ad26356f5e92bd396e58290217da55858345a4e.tar.bz2 picoarch-8ad26356f5e92bd396e58290217da55858345a4e.zip |
Adds generic nearest and smooth scalers
Smooth is slower (10-15%) than a scaler built for a specific
resolution. Works well for downscaling and for odd screen ratios until
a custom scaler is built.
Replaces the snes smooth scaler (outperforms it) and the gba smooth
scaler (looks better)
Diffstat (limited to 'core.c')
-rw-r--r-- | core.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -20,7 +20,7 @@ struct core_cbs current_core; double sample_rate; double frame_rate; double aspect_ratio; -int audio_buffer_size_override; +unsigned audio_buffer_size_override; int state_slot; static char config_dir[MAX_PATH]; @@ -580,14 +580,14 @@ void core_unload(void) { game_info.data = NULL; } - if (current_core.handle) { - dlclose(current_core.handle); - current_core.handle = NULL; - } - if (temp_rom[0]) { remove(temp_rom); temp_rom[0] = '\0'; } options_free(); + + if (current_core.handle) { + dlclose(current_core.handle); + current_core.handle = NULL; + } } |