Commit 09e1c7f9 authored by Ell's avatar Ell

app: fix mask overlay position when zoom != 100%

... and the mask offset != (0, 0)

Thanks tmanni!
parent 6258d525
......@@ -300,8 +300,8 @@ gimp_display_shell_render (GimpDisplayShell *shell,
mask_src_y * cairo_stride + mask_src_x;
gegl_buffer_get (shell->mask,
GEGL_RECTANGLE (x - shell->mask_offset_x,
y - shell->mask_offset_y,
GEGL_RECTANGLE (x - floor (shell->mask_offset_x * scale),
y - floor (shell->mask_offset_y * scale),
w, h),
scale,
babl_format ("Y u8"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment