diff --git a/gnwinfo/gnwinfo.c b/gnwinfo/gnwinfo.c index 947d9762..aff923bf 100644 --- a/gnwinfo/gnwinfo.c +++ b/gnwinfo/gnwinfo.c @@ -9,7 +9,7 @@ unsigned int g_init_width = 600; unsigned int g_init_height = 800; unsigned int g_init_alpha = 255; -unsigned int g_font_size = 12; +int g_font_size = 12; nk_bool g_bginfo = 0; struct nk_color g_color_warning = NK_COLOR_YELLOW; struct nk_color g_color_error = NK_COLOR_RED; @@ -407,7 +407,7 @@ wWinMain(_In_ HINSTANCE hInstance, if (wcscmp(font_name, L"-") == 0) wcscpy_s(font_name, 64, L"Courier New"); } - g_font_size = strtoul(gnwinfo_get_ini_value(L"Window", L"FontSize", L"12"), NULL, 10); + g_font_size = strtol(gnwinfo_get_ini_value(L"Window", L"FontSize", L"12"), NULL, 10); font = nk_gdip_load_font(font_name, g_font_size); nk_gdip_set_font(font); diff --git a/gnwinfo/gnwinfo.h b/gnwinfo/gnwinfo.h index 212bedd7..14ad9a46 100644 --- a/gnwinfo/gnwinfo.h +++ b/gnwinfo/gnwinfo.h @@ -169,7 +169,7 @@ extern WCHAR g_ini_path[MAX_PATH]; extern unsigned int g_init_width; extern unsigned int g_init_height; extern unsigned int g_init_alpha; -extern unsigned int g_font_size; +extern int g_font_size; extern nk_bool g_bginfo; #define NK_COLOR_YELLOW {0xFF, 0xEA, 0x00, 0xFF} diff --git a/libnw/version.h b/libnw/version.h index 5ea97e08..3fb1915e 100644 --- a/libnw/version.h +++ b/libnw/version.h @@ -7,8 +7,8 @@ #define NWINFO_MAJOR_VERSION 0 #define NWINFO_MINOR_VERSION 8 -#define NWINFO_MICRO_VERSION 7 -#define NWINFO_BUILD_VERSION 1 +#define NWINFO_MICRO_VERSION 8 +#define NWINFO_BUILD_VERSION 0 #define NWINFO_VERSION NWINFO_MAJOR_VERSION,NWINFO_MINOR_VERSION,NWINFO_MICRO_VERSION,NWINFO_BUILD_VERSION #define NWINFO_VERSION_STR QUOTE(NWINFO_MAJOR_VERSION.NWINFO_MINOR_VERSION.NWINFO_MICRO_VERSION.NWINFO_BUILD_VERSION)