Commit 0008e832 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

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.
parent c0d677bc
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>
* configure.in: removed "id" from ALL_LINGUAS until all required
......@@ -418,7 +418,7 @@ cdisplay_colorblind_load_state (GimpColorDisplay *display,
GimpParasite *state)
{
CdisplayColorblind *colorblind;
gchar *str;
const gchar *str;
colorblind = CDISPLAY_COLORBLIND (display);
......
......@@ -263,7 +263,10 @@ cdisplay_gamma_load_state (GimpColorDisplay *display,
memcpy (&gamma->gamma, gimp_parasite_data (state), sizeof (gdouble));
#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[1] = g_ntohl (data[0]);
......
......@@ -260,7 +260,10 @@ cdisplay_contrast_load_state (GimpColorDisplay *display,
memcpy (&contrast->contrast, gimp_parasite_data (state), sizeof (gdouble));
#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[1] = g_ntohl (data[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment