From e64f0ba0269c7f6ff63e2a378059d98158b7c94a Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sun, 27 Oct 2019 18:15:42 -0700 Subject: [PATCH] Fix the issue with windows keys acting like 0 and , --- custom/4coder_fancy.cpp | 5 ++--- platform_win32/win32_4ed.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/custom/4coder_fancy.cpp b/custom/4coder_fancy.cpp index c63ff6bd..2fe210f4 100644 --- a/custom/4coder_fancy.cpp +++ b/custom/4coder_fancy.cpp @@ -191,7 +191,7 @@ function Fancy_String* push_fancy_stringfv(Arena *arena, Fancy_Line *line, f32 pre_margin, f32 post_margin, char *format, va_list args){ return(push_fancy_stringfv(arena, line, 0, fcolor_zero(), pre_margin, post_margin, - format, args)); + format, args)); } function Fancy_String* push_fancy_stringfv(Arena *arena, Fancy_Line *line, @@ -693,7 +693,6 @@ get_fancy_block_dim(Application_Links *app, Face_ID face, Fancy_Block *block){ function void draw_fancy_block(Application_Links *app, Face_ID face, FColor fore, Fancy_Block *block, Vec2_f32 p, u32 flags, Vec2_f32 delta){ - Face_Metrics metrics = get_face_metrics(app, face); for (Fancy_Line *node = block->first; node != 0; node = node->next){ @@ -710,7 +709,7 @@ draw_fancy_string(Application_Links *app, Face_ID face, FColor fore, function Vec2_f32 draw_fancy_line(Application_Links *app, Face_ID face, FColor fore, - Fancy_Line *line, Vec2_f32 p){ + Fancy_Line *line, Vec2_f32 p){ return(draw_fancy_line(app, face, fore, line, p, 0, V2f32(1.f, 0.f))); } diff --git a/platform_win32/win32_4ed.cpp b/platform_win32/win32_4ed.cpp index 933185d8..c281018b 100644 --- a/platform_win32/win32_4ed.cpp +++ b/platform_win32/win32_4ed.cpp @@ -624,7 +624,7 @@ global Key_Code keycode_lookup_table[255]; internal void win32_keycode_init(void){ - for (u32 i = 'A'; i <= 'z'; i += 1){ + for (u32 i = 'A'; i <= 'Z'; i += 1){ keycode_lookup_table[i] = KeyCode_A + i - 'A'; } for (u32 i = '0'; i <= '9'; i += 1){