Skip to content

Commit

Permalink
GUI2/Canvas: removed surface_lock objects
Browse files Browse the repository at this point in the history
The canvas surface isn't even passed to these functions anymore so I have no idea how this built.
  • Loading branch information
Vultraz committed Mar 18, 2018
1 parent 94f9303 commit aa2f266
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gui/core/canvas.cpp
Expand Up @@ -700,8 +700,6 @@ void rectangle_shape::draw(
&& y < canvas_h
&& y + h <= canvas_h, _("Rectangle doesn't fit on canvas."));

surface_lock locker(canvas);

const color_t fill_color = fill_color_(variables);

// Fill the background, if applicable
Expand Down Expand Up @@ -817,8 +815,6 @@ void round_rectangle_shape::draw(
&& y < canvas_h
&& y + h <= canvas_h, _("Rounded Rectangle doesn't fit on canvas."));

surface_lock locker(canvas);

const color_t fill_color = fill_color_(variables);

// Fill the background, if applicable
Expand Down Expand Up @@ -946,9 +942,6 @@ void circle_shape::draw(
formatter() << "y = " << y << ", radius = " << radius
<< "', canvas height = " << canvas_h << ".");

// lock the surface
surface_lock locker(canvas);

const color_t fill_color = fill_color_(variables);
if(!fill_color.null() && radius) {
fill_circle(canvas_w, canvas_h, renderer, fill_color, x, y, radius);
Expand Down

0 comments on commit aa2f266

Please sign in to comment.