mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-18 22:03:53 +00:00
app: use CAIRO_OPERATOR_SOURCE in gimp_display_shell_scroll()
to copy around the render cache when scrolling.
This commit is contained in:
parent
2061cc0077
commit
c393eff089
|
@ -107,11 +107,13 @@ gimp_display_shell_scroll (GimpDisplayShell *shell,
|
|||
shell->disp_height);
|
||||
|
||||
cr = cairo_create (surface);
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
cairo_set_source_surface (cr, shell->render_cache, 0, 0);
|
||||
cairo_paint (cr);
|
||||
cairo_destroy (cr);
|
||||
|
||||
cr = cairo_create (shell->render_cache);
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
cairo_set_source_surface (cr, surface,
|
||||
-x_offset, -y_offset);
|
||||
cairo_paint (cr);
|
||||
|
|
Loading…
Reference in a new issue