diff options
| author | iamcheeseman <[email protected]> | 2026-05-27 16:34:31 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-27 16:34:31 -0400 |
| commit | a875e0155ec7757c7b487bee0b4a8fbfa8574888 (patch) | |
| tree | e35b5384478371a8708e6adeeb4f49201b618364 /platform/gl/gl.c | |
| parent | 9d997b496f9d475c6e08e33f9aa2555612c8f87b (diff) | |
build for w*ndows
Diffstat (limited to 'platform/gl/gl.c')
| -rw-r--r-- | platform/gl/gl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/gl/gl.c b/platform/gl/gl.c index 15bfe00..3f15160 100644 --- a/platform/gl/gl.c +++ b/platform/gl/gl.c @@ -238,7 +238,7 @@ ty_Vec2i ty_platform_get_mouse(void) double scalex = win_width / ctx.hints.scr_width; double scaley = win_height / ctx.hints.scr_height; - return ty_vec2i(x / scalex, y / scaley); + return ty_vec2i((int)(x / scalex), (int)(y / scaley)); } bool ty_platform_is_button_down(ty_Button btn) |
