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
This commit is contained in:
Michał Janiszewski 2015-11-10 22:30:38 +01:00
parent 681723869f
commit 6e63519bce
2 changed files with 2 additions and 2 deletions

View File

@ -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[] = {

View File

@ -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 {