diff options
Diffstat (limited to 'teensy')
| -rw-r--r-- | teensy/platform/gl/gl.c | 2 | ||||
| -rw-r--r-- | teensy/teensy_ui.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/teensy/platform/gl/gl.c b/teensy/platform/gl/gl.c index 9f9c8f5..6bdae71 100644 --- a/teensy/platform/gl/gl.c +++ b/teensy/platform/gl/gl.c @@ -51,6 +51,7 @@ Gl_Platform p; static void character_callback(GLFWwindow *window, unsigned int cp) { + (void)window; p.typed = cp; } @@ -279,4 +280,5 @@ bool ty_platform_get_typed_char(uint32_t *c) if (p.typed == 0) return false; p.typed = 0; + return true; } diff --git a/teensy/teensy_ui.h b/teensy/teensy_ui.h index 5ceda30..a7b5d4e 100644 --- a/teensy/teensy_ui.h +++ b/teensy/teensy_ui.h @@ -70,7 +70,7 @@ typedef struct { typedef struct { char *chars; - int max_len; + size_t max_len; } tyui_Text_Input; void tyui_init(const ty_Font *font); |
