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 Jul 9, 2017
1 parent 2345fd3 commit cc29dc4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gui/core/canvas.cpp
Expand Up @@ -708,8 +708,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 @@ -825,8 +823,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 @@ -954,9 +950,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 cc29dc4

Please sign in to comment.