Skip to content

Commit

Permalink
Fix indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Jul 29, 2024
1 parent a0ea844 commit 7baf4a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples-api-use/minimal-example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ static void DrawOnCanvas(Canvas *canvas) {
float angle_step = 1.0 / 360;
for (float a = 0, r = 0; r < radius_max; a += angle_step, r += angle_step) {
if (interrupt_received)
return;
return;
float dot_x = cos(a * 2 * M_PI) * r;
float dot_y = sin(a * 2 * M_PI) * r;
canvas->SetPixel(center_x + dot_x, center_y + dot_y,
255, 0, 0);
usleep(1 * 1000); // wait a little to slow down things.
canvas->SetPixel(center_x + dot_x, center_y + dot_y, 255, 0, 0);
usleep(1 * 1000); // wait a little to slow down things.
}
}

Expand Down

0 comments on commit 7baf4a3

Please sign in to comment.