mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
modules/cdisplay_colorblind.c (cdisplay_colorblind_load_state)
2003-06-25 Michael Natterer <mitch@gimp.org> * modules/cdisplay_colorblind.c (cdisplay_colorblind_load_state) * modules/cdisplay_gamma.c (cdisplay_gamma_load_state) * modules/cdisplay_highcontrast.c (cdisplay_contrast_load_state): gimp_parasite_data() returns a pointer to const data now.
This commit is contained in:
parent
c0d677bcf2
commit
0008e8329d
4 changed files with 16 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2003-06-25 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* modules/cdisplay_colorblind.c (cdisplay_colorblind_load_state)
|
||||||
|
* modules/cdisplay_gamma.c (cdisplay_gamma_load_state)
|
||||||
|
* modules/cdisplay_highcontrast.c (cdisplay_contrast_load_state):
|
||||||
|
gimp_parasite_data() returns a pointer to const data now.
|
||||||
|
|
||||||
2003-06-25 Sven Neumann <sven@gimp.org>
|
2003-06-25 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* configure.in: removed "id" from ALL_LINGUAS until all required
|
* configure.in: removed "id" from ALL_LINGUAS until all required
|
||||||
|
|
|
@ -418,7 +418,7 @@ cdisplay_colorblind_load_state (GimpColorDisplay *display,
|
||||||
GimpParasite *state)
|
GimpParasite *state)
|
||||||
{
|
{
|
||||||
CdisplayColorblind *colorblind;
|
CdisplayColorblind *colorblind;
|
||||||
gchar *str;
|
const gchar *str;
|
||||||
|
|
||||||
colorblind = CDISPLAY_COLORBLIND (display);
|
colorblind = CDISPLAY_COLORBLIND (display);
|
||||||
|
|
||||||
|
|
|
@ -263,7 +263,10 @@ cdisplay_gamma_load_state (GimpColorDisplay *display,
|
||||||
memcpy (&gamma->gamma, gimp_parasite_data (state), sizeof (gdouble));
|
memcpy (&gamma->gamma, gimp_parasite_data (state), sizeof (gdouble));
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
guint32 buf[2], *data = gimp_parasite_data (state);
|
guint32 buf[2];
|
||||||
|
const guint32 *data;
|
||||||
|
|
||||||
|
data = gimp_parasite_data (state);
|
||||||
|
|
||||||
buf[0] = g_ntohl (data[1]);
|
buf[0] = g_ntohl (data[1]);
|
||||||
buf[1] = g_ntohl (data[0]);
|
buf[1] = g_ntohl (data[0]);
|
||||||
|
|
|
@ -260,7 +260,10 @@ cdisplay_contrast_load_state (GimpColorDisplay *display,
|
||||||
memcpy (&contrast->contrast, gimp_parasite_data (state), sizeof (gdouble));
|
memcpy (&contrast->contrast, gimp_parasite_data (state), sizeof (gdouble));
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
guint32 buf[2], *data = gimp_parasite_data (state);
|
guint32 buf[2];
|
||||||
|
const guint32 *data;
|
||||||
|
|
||||||
|
data = gimp_parasite_data (state);
|
||||||
|
|
||||||
buf[0] = g_ntohl (data[1]);
|
buf[0] = g_ntohl (data[1]);
|
||||||
buf[1] = g_ntohl (data[0]);
|
buf[1] = g_ntohl (data[0]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue