[gimp] plug-ins: replace gimp_checks_get_shades() by gimp_checks_get_colors().
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: replace gimp_checks_get_shades() by gimp_checks_get_colors().
- Date: Sat, 14 May 2022 15:43:56 +0000 (UTC)
commit 8d61c4211f6d3c0a989469ecda98f09a6ab33aa2
Author: Jehan <jehan girinstud io>
Date: Sat May 14 17:31:09 2022 +0200
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]