From 8d61c4211f6d3c0a989469ecda98f09a6ab33aa2 Mon Sep 17 00:00:00 2001 From: Jehan Date: Sat, 14 May 2022 17:31:09 +0200 Subject: [PATCH] plug-ins: replace gimp_checks_get_shades() by gimp_checks_get_colors(). The animation playback now follows user preferences for checkboard rendering. Also fixing a small bug there, as the GIMP_CHECK_SIZE_SMALL_CHECKS was the wrong type (it needed a check type, not a check size parameter). --- plug-ins/common/animation-play.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plug-ins/common/animation-play.c b/plug-ins/common/animation-play.c index b4f295cf20..70381e1470 100644 --- a/plug-ins/common/animation-play.c +++ b/plug-ins/common/animation-play.c @@ -490,14 +490,11 @@ repaint_da (GtkWidget *darea, gpointer data) { cairo_pattern_t *check; - GimpRGB light; - GimpRGB dark; + GimpRGB light = *(gimp_check_custom_color1 ()); + GimpRGB dark = *(gimp_check_custom_color2 ());; guchar l, d; - gimp_checks_get_shades (GIMP_CHECK_SIZE_SMALL_CHECKS, &l, &d); - - gimp_rgba_set_uchar (&light, l, l, l, 255); - gimp_rgba_set_uchar (&dark, d, d, d, 255); + gimp_checks_get_colors (gimp_check_type (), &light, &dark); check = gimp_cairo_checkerboard_create (cr, 32, &light, &dark);