app/display: let cairo render the checkerboard

Instead of blending the scaled image data onto the checkerboard and
then painting this image to the screen, render the image data into
an ARGB cairo image surface. Then paint a checkerboard on the canvas
and the image on top of it.
This commit is contained in:
Sven Neumann
2010-09-28 21:10:03 +02:00
parent ebeb933350
commit ccee0ec41a
7 changed files with 91 additions and 107 deletions

View File

@ -592,6 +592,12 @@ gimp_display_shell_check_notify_handler (GObject *config,
GimpCanvasPaddingMode padding_mode;
GimpRGB padding_color;
if (shell->checkerboard)
{
cairo_pattern_destroy (shell->checkerboard);
shell->checkerboard = NULL;
}
gimp_display_shell_get_padding (shell, &padding_mode, &padding_color);
switch (padding_mode)