[gimp/gimp-2-10] plug-ins: fix compilation of previous commit.
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: fix compilation of previous commit.
- Date: Tue, 27 Apr 2021 02:28:03 +0000 (UTC)
commit c9d2722192a67d45220092e708f9898247d5ce83
Author: Jacob Boerema <jgboerema gmail com>
Date: Mon Apr 26 22:27:20 2021 -0400
plug-ins: fix compilation of previous commit.
plug-ins/file-dds/ddsread.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/plug-ins/file-dds/ddsread.c b/plug-ins/file-dds/ddsread.c
index 46d2fb3ca5..2e0de14dbf 100644
--- a/plug-ins/file-dds/ddsread.c
+++ b/plug-ins/file-dds/ddsread.c
@@ -249,12 +249,11 @@ read_dds (gchar *filename,
}
else
{
- g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- "Unsupported uncompressed dds format: "
- "bpp: %d, Rmask: %x, Gmask: %x, Bmask: %x, Amask: %x",
- hdr.pixelfmt.bpp,
- hdr.pixelfmt.rmask, hdr.pixelfmt.gmask,
- hdr.pixelfmt.bmask, hdr.pixelfmt.amask);
+ g_message ("Unsupported uncompressed dds format: "
+ "bpp: %d, Rmask: %x, Gmask: %x, Bmask: %x, Amask: %x",
+ hdr.pixelfmt.bpp,
+ hdr.pixelfmt.rmask, hdr.pixelfmt.gmask,
+ hdr.pixelfmt.bmask, hdr.pixelfmt.amask);
return GIMP_PDB_EXECUTION_ERROR;
}
}
@@ -289,11 +288,11 @@ read_dds (gchar *filename,
if (d.gimp_bps == 2)
{
- precision = GIMP_PRECISION_U16_NON_LINEAR;
+ precision = GIMP_PRECISION_U16_GAMMA;
}
else
{
- precision = GIMP_PRECISION_U8_NON_LINEAR;
+ precision = GIMP_PRECISION_U8_GAMMA;
}
image = gimp_image_new_with_precision (hdr.width, hdr.height, type, precision);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]