Skip to content

Commit

Permalink
misc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Oct 9, 2023
1 parent 5d543d9 commit b8a27d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gnwinfo/gnwinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion gnwinfo/gnwinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions libnw/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b8a27d3

Please sign in to comment.