[gimp] app: use 2/3 of the area's shorter side for GimpFgBgEditor's oog color too
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use 2/3 of the area's shorter side for GimpFgBgEditor's oog color too
- Date: Fri, 19 May 2017 09:56:46 +0000 (UTC)
commit 54e2c196b77ce9f1aa75ef45e558bc3e71952afa
Author: Michael Natterer <mitch gimp org>
Date: Fri May 19 11:55:54 2017 +0200
app: use 2/3 of the area's shorter side for GimpFgBgEditor's oog color too
app/widgets/gimpfgbgeditor.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpfgbgeditor.c b/app/widgets/gimpfgbgeditor.c
index 04b33bc..96c935d 100644
--- a/app/widgets/gimpfgbgeditor.c
+++ b/app/widgets/gimpfgbgeditor.c
@@ -367,7 +367,7 @@ gimp_fg_bg_editor_expose (GtkWidget *widget,
color.g < 0.0 || color.g > 1.0 ||
color.b < 0.0 || color.b > 1.0))
{
- gint side = MIN (rect_w, rect_h) / 2;
+ gint side = MIN (rect_w, rect_h) * 2 / 3;
cairo_move_to (cr, width, height);
cairo_line_to (cr, width - side, height);
@@ -417,7 +417,7 @@ gimp_fg_bg_editor_expose (GtkWidget *widget,
color.g < 0.0 || color.g > 1.0 ||
color.b < 0.0 || color.b > 1.0))
{
- gint side = MIN (rect_w, rect_h) / 2;
+ gint side = MIN (rect_w, rect_h) * 2 / 3;
cairo_move_to (cr, 0, 0);
cairo_line_to (cr, 0, side);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]