From 6e63519bceee3a50f27621253cff50b42224b22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 10 Nov 2015 22:30:38 +0100 Subject: [PATCH] Make `scale` a float There's no problem in `scale` being a floating point value, however, since it's only NN scaling so far, it looks best for integer values --- src/config.c | 2 +- src/config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 57530c1df1..eafb2d0778 100644 --- a/src/config.c +++ b/src/config.c @@ -197,7 +197,7 @@ config_property_definition _generalDefinitions[] = { { offsetof(general_configuration, upper_case_banners), "upper_case_banners", CONFIG_VALUE_TYPE_BOOLEAN, false, NULL }, { offsetof(general_configuration, allow_loading_with_incorrect_checksum),"allow_loading_with_incorrect_checksum", CONFIG_VALUE_TYPE_BOOLEAN, false, NULL }, { offsetof(general_configuration, steam_overlay_pause), "steam_overlay_pause", CONFIG_VALUE_TYPE_BOOLEAN, true, NULL }, - { offsetof(general_configuration, scale), "scale", CONFIG_VALUE_TYPE_SINT8, 1, NULL }, + { offsetof(general_configuration, scale), "scale", CONFIG_VALUE_TYPE_FLOAT, 1.0f, NULL }, }; config_property_definition _interfaceDefinitions[] = { diff --git a/src/config.h b/src/config.h index fba4ab4779..1aae60d227 100644 --- a/src/config.h +++ b/src/config.h @@ -167,7 +167,7 @@ typedef struct { uint8 upper_case_banners; uint8 allow_loading_with_incorrect_checksum; uint8 steam_overlay_pause; - sint8 scale; + float scale; } general_configuration; typedef struct {