Style fixes

This commit is contained in:
Lior Halphon 2020-08-22 14:16:07 +03:00 committed by GitHub
parent cc37632714
commit e307de8064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -170,7 +170,8 @@ void update_viewport(void)
}
}
void rescale_window() {
static void rescale_window(void)
{
SDL_SetWindowSize(window, GB_get_screen_width(&gb) * configuration.default_scale, GB_get_screen_height(&gb) * configuration.default_scale);
}
@ -489,7 +490,8 @@ void cycle_default_scale(unsigned index)
{
if (configuration.default_scale == GB_SDL_DEFAULT_SCALE_MAX) {
configuration.default_scale = 1;
} else {
}
else {
configuration.default_scale++;
}
@ -501,7 +503,8 @@ void cycle_default_scale_backwards(unsigned index)
{
if (configuration.default_scale == 1) {
configuration.default_scale = GB_SDL_DEFAULT_SCALE_MAX;
} else {
}
else {
configuration.default_scale--;
}