mirror of https://github.com/GNOME/gimp.git
app: fix mask overlay position when zoom != 100%
... and the mask offset != (0, 0) Thanks tmanni!
This commit is contained in:
parent
6258d525ae
commit
09e1c7f9b5
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue