summaryrefslogtreecommitdiff
path: root/nonstd.h
diff options
context:
space:
mode:
Diffstat (limited to 'nonstd.h')
-rw-r--r--nonstd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/nonstd.h b/nonstd.h
index 224f8ae..146b12d 100644
--- a/nonstd.h
+++ b/nonstd.h
@@ -744,8 +744,9 @@ NONSTD_DEF void ppm_fill(Canvas *canvas, Color color) {
}
NONSTD_DEF void ppm_draw_rect(Canvas *canvas, u32 x, u32 y, u32 w, u32 h, Color color) {
- if (w == 0 || h == 0)
+ if (w == 0 || h == 0) {
return;
+ }
for (u32 i = x; i < x + w; ++i) {
ppm_set_pixel(canvas, i, y, color);
ppm_set_pixel(canvas, i, y + h - 1, color);