[gimp] plug-ins: fix last commit
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: fix last commit
- Date: Thu, 4 Jun 2020 17:48:54 +0000 (UTC)
commit f4058d47a238e6445b07c81290fb2d0dd4cdaddf
Author: Ell <ell_se yahoo com>
Date: Thu Jun 4 20:47:34 2020 +0300
plug-ins: fix last commit
plug-ins/twain/twain.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/twain/twain.c b/plug-ins/twain/twain.c
index 9b726d5e5a..e29bf4df03 100644
--- a/plug-ins/twain/twain.c
+++ b/plug-ins/twain/twain.c
@@ -537,7 +537,7 @@ beginTransferCallback (pTW_IMAGEINFO imageInfo,
/* Set up the image and layer types */
imageType = GIMP_GRAY;
layerType = GIMP_GRAY_IMAGE;
- precision = GIMP_PRECISION_U8_GAMMA;
+ precision = GIMP_PRECISION_U8_NON_LINEAR;
format = babl_format ("Y' u8");
break;
@@ -549,12 +549,12 @@ beginTransferCallback (pTW_IMAGEINFO imageInfo,
switch (bpc)
{
case 8:
- precision = GIMP_PRECISION_U8_GAMMA;
+ precision = GIMP_PRECISION_U8_NON_LINEAR;
format = babl_format ("Y' u8");
break;
case 16:
- precision = GIMP_PRECISION_U16_GAMMA;
+ precision = GIMP_PRECISION_U16_NON_LINEAR;
format = babl_format ("Y' u16");
break;
@@ -571,12 +571,12 @@ beginTransferCallback (pTW_IMAGEINFO imageInfo,
switch (bpc)
{
case 8:
- precision = GIMP_PRECISION_U8_GAMMA;
+ precision = GIMP_PRECISION_U8_NON_LINEAR;
format = babl_format ("R'G'B' u8");
break;
case 16:
- precision = GIMP_PRECISION_U16_GAMMA;
+ precision = GIMP_PRECISION_U16_NON_LINEAR;
format = babl_format ("R'G'B' u16");
break;
@@ -601,6 +601,7 @@ beginTransferCallback (pTW_IMAGEINFO imageInfo,
/* Set up the image and layer types */
imageType = GIMP_RGB;
layerType = GIMP_RGB_IMAGE;
+ precision = GIMP_PRECISION_U8_NON_LINEAR;
format = babl_format ("R'G'B' u8");
break;
@@ -609,6 +610,7 @@ beginTransferCallback (pTW_IMAGEINFO imageInfo,
/* Set up the image and layer types */
imageType = GIMP_GRAY;
layerType = GIMP_GRAY_IMAGE;
+ precision = GIMP_PRECISION_U8_NON_LINEAR;
format = babl_format ("Y' u8");
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]