diff options
| author | iamcheeseman <[email protected]> | 2026-05-21 20:51:58 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-21 20:51:58 -0400 |
| commit | bc5203f5a2e88aa6dd9f3ed54496d9813dfbc84e (patch) | |
| tree | 927dac209a6bae30761495ff8990f878c38422c3 /teensy/teensy_renderer.c | |
| parent | a573068a4faad9aa1a0aa9fad92162ce0f2ad483 (diff) | |
allow size 0 clips
Diffstat (limited to 'teensy/teensy_renderer.c')
| -rw-r--r-- | teensy/teensy_renderer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/teensy/teensy_renderer.c b/teensy/teensy_renderer.c index eee67a3..5f6fced 100644 --- a/teensy/teensy_renderer.c +++ b/teensy/teensy_renderer.c @@ -148,7 +148,7 @@ void ty_draw_set_target(const ty_Image *img) void ty_draw_set_clip(ty_Recti clip) { - if (clip.w <= 0 || clip.h <= 0) + if (clip.w < 0 || clip.h < 0) clip = screenspace(); ty_Vec2i start = clamp_point(ty_recti_start(clip), screenspace()); |
