mirror of https://github.com/GNOME/gimp.git
libgimp: remove gimp_gamma()
This commit is contained in:
parent
8c9c091021
commit
fe648c87bd
|
@ -213,7 +213,6 @@ static gint _tile_width = -1;
|
|||
static gint _tile_height = -1;
|
||||
static gint _shm_ID = -1;
|
||||
static guchar *_shm_addr = NULL;
|
||||
static const gdouble _gamma_val = 2.2;
|
||||
static gboolean _show_help_button = TRUE;
|
||||
static gboolean _export_profile = FALSE;
|
||||
static gboolean _export_exif = FALSE;
|
||||
|
@ -1379,26 +1378,6 @@ gimp_shm_addr (void)
|
|||
return _shm_addr;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_gamma:
|
||||
*
|
||||
* Returns the global gamma value GIMP and all its plug-ins should
|
||||
* use.
|
||||
*
|
||||
* This is a constant value given at plug-in configuration time.
|
||||
*
|
||||
* NOTE: This function will always return 2.2, the gamma value for
|
||||
* sRGB. There's currently no way to change this and all operations
|
||||
* should assume that pixel data is in the sRGB colorspace.
|
||||
*
|
||||
* Return value: the gamma value
|
||||
**/
|
||||
gdouble
|
||||
gimp_gamma (void)
|
||||
{
|
||||
return _gamma_val;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_show_help_button:
|
||||
*
|
||||
|
|
|
@ -276,7 +276,6 @@ EXPORTS
|
|||
gimp_fonts_popup
|
||||
gimp_fonts_refresh
|
||||
gimp_fonts_set_popup
|
||||
gimp_gamma
|
||||
gimp_get_color_configuration
|
||||
gimp_get_default_comment
|
||||
gimp_get_default_unit
|
||||
|
|
|
@ -318,7 +318,6 @@ guint gimp_tile_width (void) G_GNUC_CONST;
|
|||
guint gimp_tile_height (void) G_GNUC_CONST;
|
||||
gint gimp_shm_ID (void) G_GNUC_CONST;
|
||||
guchar * gimp_shm_addr (void) G_GNUC_CONST;
|
||||
gdouble gimp_gamma (void) G_GNUC_CONST;
|
||||
gboolean gimp_show_help_button (void) G_GNUC_CONST;
|
||||
gboolean gimp_export_color_profile (void) G_GNUC_CONST;
|
||||
gboolean gimp_export_exif (void) G_GNUC_CONST;
|
||||
|
|
|
@ -750,7 +750,7 @@ mng_save_image (const gchar *filename,
|
|||
if (mng_data.gama)
|
||||
{
|
||||
if (mng_putchunk_gama (handle, MNG_FALSE,
|
||||
(1.0 / (gimp_gamma ()) * 100000)) != MNG_NOERROR)
|
||||
(1.0 / 2.2 * 100000)) != MNG_NOERROR)
|
||||
{
|
||||
g_warning ("Unable to mng_putchunk_gama() in mng_save_image()");
|
||||
goto err3;
|
||||
|
|
Loading…
Reference in New Issue