@@ -149,11 +149,9 @@ void Canvas::luminance()
149149 auto height = plutovg_surface_get_height (surface);
150150 auto stride = plutovg_surface_get_stride (surface);
151151 auto data = plutovg_surface_get_data (surface);
152- for (int y = 0 ;y < height;y++)
153- {
152+ for (int y = 0 ; y < height; y++) {
154153 auto pixels = reinterpret_cast <uint32_t *>(data + stride * y);
155- for (int x = 0 ;x < width;x++)
156- {
154+ for (int x = 0 ; x < width; x++) {
157155 auto pixel = pixels[x];
158156 auto r = (pixel >> 16 ) & 0xFF ;
159157 auto g = (pixel >> 8 ) & 0xFF ;
@@ -229,8 +227,7 @@ static plutovg_texture_type_t to_plutovg_texture_type(TextureType type)
229227
230228static void to_plutovg_stops (plutovg_gradient_t * gradient, const GradientStops& stops)
231229{
232- for (const auto & stop : stops)
233- {
230+ for (const auto & stop : stops) {
234231 auto offset = std::get<0 >(stop);
235232 auto & color = std::get<1 >(stop);
236233 plutovg_gradient_add_stop_rgba (gradient, offset, color.red () / 255.0 , color.green () / 255.0 , color.blue () / 255.0 , color.alpha () / 255.0 );
@@ -241,8 +238,7 @@ void to_plutovg_path(plutovg_t* pluto, const Path& path)
241238{
242239 PathIterator it (path);
243240 std::array<Point, 3 > p;
244- while (!it.isDone ())
245- {
241+ while (!it.isDone ()) {
246242 switch (it.currentSegment (p)) {
247243 case PathCommand::MoveTo:
248244 plutovg_move_to (pluto, p[0 ].x , p[0 ].y );
0 commit comments