[gthumb] icc profile: renamed function for clarity
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] icc profile: renamed function for clarity
- Date: Sun, 20 Mar 2022 17:27:45 +0000 (UTC)
commit ea899e6312f6ab9079982242c850723fa6f36a64
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Mar 20 18:26:22 2022 +0100
icc profile: renamed function for clarity
extensions/cairo_io/cairo-image-surface-png.c | 2 +-
gthumb/gth-icc-profile.c | 2 +-
gthumb/gth-icc-profile.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/extensions/cairo_io/cairo-image-surface-png.c b/extensions/cairo_io/cairo-image-surface-png.c
index 6249482d..f04a6b3e 100644
--- a/extensions/cairo_io/cairo-image-surface-png.c
+++ b/extensions/cairo_io/cairo-image-surface-png.c
@@ -306,7 +306,7 @@ _cairo_image_surface_create_from_png (GInputStream *istream,
cairo_png_data->png_info_ptr,
&gamma))
{
- profile = gth_icc_profile_new_rgb_with_gamma (1.0 / gamma);
+ profile = gth_icc_profile_new_srgb_with_gamma (1.0 / gamma);
}
if (profile != NULL) {
diff --git a/gthumb/gth-icc-profile.c b/gthumb/gth-icc-profile.c
index 051445be..ba288567 100644
--- a/gthumb/gth-icc-profile.c
+++ b/gthumb/gth-icc-profile.c
@@ -206,7 +206,7 @@ gth_icc_profile_new_srgb (void)
GthICCProfile *
-gth_icc_profile_new_rgb_with_gamma (double gamma)
+gth_icc_profile_new_srgb_with_gamma (double gamma)
{
#ifdef HAVE_LCMS2
diff --git a/gthumb/gth-icc-profile.h b/gthumb/gth-icc-profile.h
index ff55e195..84e4eaf1 100644
--- a/gthumb/gth-icc-profile.h
+++ b/gthumb/gth-icc-profile.h
@@ -80,7 +80,7 @@ GType gth_icc_profile_get_type (void);
GthICCProfile * gth_icc_profile_new (const char *id,
GthCMSProfile profile);
GthICCProfile * gth_icc_profile_new_srgb (void);
-GthICCProfile * gth_icc_profile_new_rgb_with_gamma (double gamma);
+GthICCProfile * gth_icc_profile_new_srgb_with_gamma (double gamma);
const char * gth_icc_profile_get_id (GthICCProfile *icc_profile);
char * gth_icc_profile_get_description (GthICCProfile *icc_profile);
gboolean gth_icc_profile_id_is_unknown (const char *id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]