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 Aug 12, 2017
1 parent 570c6a6 commit 015618c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gui/core/canvas.cpp
Expand Up @@ -710,8 +710,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 @@ -827,8 +825,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 @@ -956,9 +952,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 015618c

Please sign in to comment.