aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorneonloop2021-08-07 20:28:34 +0000
committerneonloop2021-08-07 20:28:34 +0000
commit8ad26356f5e92bd396e58290217da55858345a4e (patch)
tree8c08b9e62f36170e36514a4d1f397990e881104e /main.c
parentb148bcce05254c7ebe0ad855e5f1e958968a0bb9 (diff)
downloadpicoarch-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 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 584ca43..5fabd58 100644
--- a/main.c
+++ b/main.c
@@ -19,7 +19,7 @@ char save_template_path[MAX_PATH];
#endif
bool should_quit = false;
-int current_audio_buffer_size;
+unsigned current_audio_buffer_size;
char core_name[MAX_PATH];
char* content_path;
@@ -101,7 +101,7 @@ void set_defaults(void)
if (current_audio_buffer_size < audio_buffer_size)
current_audio_buffer_size = audio_buffer_size;
- for (int i = 0; i < core_options.len; i++) {
+ for (size_t i = 0; i < core_options.len; i++) {
const char *key = options_get_key(i);
if (key)
core_options.entries[i].value = options_default_index(key);
@@ -321,7 +321,7 @@ static void count_fps(void)
}
static void adjust_audio(void) {
- static int prev_audio_buffer_size = 0;
+ static unsigned prev_audio_buffer_size = 0;
if (!prev_audio_buffer_size)
prev_audio_buffer_size = audio_buffer_size;