From 8a7dde79de6edee01571d2eb4a333d8256f4c342 Mon Sep 17 00:00:00 2001 From: untir_l <87096069+untir-l@users.noreply.github.com> Date: Sat, 19 Feb 2022 11:10:09 +0530 Subject: Improve docs, don't initialise SDL until arguments are already handled --- lib/hitomezashi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/hitomezashi.c') diff --git a/lib/hitomezashi.c b/lib/hitomezashi.c index 09feb11..66f7440 100644 --- a/lib/hitomezashi.c +++ b/lib/hitomezashi.c @@ -71,6 +71,7 @@ enum Hitomezashi_Draw_Result hitomezashi_draw(struct Hitomezashi_State *state) { } } // Join up the lines to avoid leaving holes at the intersections + // To understand how this works, try commenting it out and see the output for (int x = state->gap; x < state->output_width; x += state->gap) { for (int y = state->gap; y < state->output_height; y += state->gap) { rect.x = x; -- cgit v1.2.3-57-g22cb