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

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

Thanks tmanni!
This commit is contained in:
Ell 2017-12-31 11:34:58 -05:00
parent 6258d525ae
commit 09e1c7f9b5
1 changed files with 2 additions and 2 deletions

View File

@ -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"),