[gimp] app: cleanup enum order and comments in the dither GUI code
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: cleanup enum order and comments in the dither GUI code
- Date: Thu, 10 Nov 2016 22:20:02 +0000 (UTC)
commit ccf151446d388bd7f92b490ebcac7f079b9b954d
Author: Michael Natterer <mitch gimp org>
Date: Thu Nov 10 23:19:12 2016 +0100
app: cleanup enum order and comments in the dither GUI code
app/dialogs/convert-precision-dialog.c | 7 +++----
app/widgets/gimptemplateeditor.c | 8 ++++----
2 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/app/dialogs/convert-precision-dialog.c b/app/dialogs/convert-precision-dialog.c
index 5029d13..9ecb9c4 100644
--- a/app/dialogs/convert-precision-dialog.c
+++ b/app/dialogs/convert-precision-dialog.c
@@ -127,18 +127,17 @@ convert_precision_dialog_new (GimpImage *image,
linear = FALSE;
break;
- /* leave gamma alone by default when converting to 16/32 bit float */
case GIMP_COMPONENT_TYPE_U16:
case GIMP_COMPONENT_TYPE_U32:
default:
+ /* leave gamma alone by default when converting to 16/32 bit int */
linear = gimp_babl_format_get_linear (old_format);
break;
- case GIMP_COMPONENT_TYPE_FLOAT:
case GIMP_COMPONENT_TYPE_HALF:
+ case GIMP_COMPONENT_TYPE_FLOAT:
case GIMP_COMPONENT_TYPE_DOUBLE:
- /* default to linear when converting to half, single or double precision
- * floating point */
+ /* default to linear when converting to floating point */
linear = TRUE;
break;
}
diff --git a/app/widgets/gimptemplateeditor.c b/app/widgets/gimptemplateeditor.c
index 85ed57a..f5488fa 100644
--- a/app/widgets/gimptemplateeditor.c
+++ b/app/widgets/gimptemplateeditor.c
@@ -651,7 +651,7 @@ gimp_template_editor_precision_changed (GtkWidget *widget,
switch (component_type)
{
case GIMP_COMPONENT_TYPE_U8:
- /* default to gamma when converting to 8 bit */
+ /* default to gamma for 8 bit */
g_object_set (private->template,
"linear", FALSE,
NULL);
@@ -660,13 +660,13 @@ gimp_template_editor_precision_changed (GtkWidget *widget,
case GIMP_COMPONENT_TYPE_U16:
case GIMP_COMPONENT_TYPE_U32:
default:
- /* leave 'linear' alone */
+ /* leave gamma alone by default for 16/32 bit int */
break;
- case GIMP_COMPONENT_TYPE_FLOAT:
case GIMP_COMPONENT_TYPE_HALF:
+ case GIMP_COMPONENT_TYPE_FLOAT:
case GIMP_COMPONENT_TYPE_DOUBLE:
- /* default to linear when converting to float or double */
+ /* default to linear for floating point */
g_object_set (private->template,
"linear", TRUE,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]