From 7baf4a3d14c40c15ec8bb9b1905bc33badc02c3f Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Sun, 28 Jul 2024 18:24:32 -0700 Subject: [PATCH] Fix indentation. --- examples-api-use/minimal-example.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples-api-use/minimal-example.cc b/examples-api-use/minimal-example.cc index 31f665cad..d1c5bd83f 100644 --- a/examples-api-use/minimal-example.cc +++ b/examples-api-use/minimal-example.cc @@ -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. } }