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. } }