mirror of https://github.com/GNOME/gimp.git
parent
0d80c0c0da
commit
28205e6162
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Oct 21 02:08:36 MEST 1999 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* plug-ins/common/xpm.c: fixed a stupid cut'n'paste error I've
|
||||||
|
introduced
|
||||||
|
|
||||||
Wed Oct 20 15:33:49 PDT 1999 Manish Singh <yosh@gimp.org>
|
Wed Oct 20 15:33:49 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* plug-ins/common/psp.c: make it compile
|
* plug-ins/common/psp.c: make it compile
|
||||||
|
|
|
@ -226,7 +226,7 @@ run (char *name,
|
||||||
init_gtk ();
|
init_gtk ();
|
||||||
|
|
||||||
image_ID = param[1].data.d_int32;
|
image_ID = param[1].data.d_int32;
|
||||||
drawable_ID = param[1].data.d_int32;
|
drawable_ID = param[2].data.d_int32;
|
||||||
|
|
||||||
/* eventually export the image */
|
/* eventually export the image */
|
||||||
switch (run_mode)
|
switch (run_mode)
|
||||||
|
@ -472,7 +472,6 @@ parse_image (gint32 image_ID,
|
||||||
g_free(buf);
|
g_free(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
gimp_drawable_detach (drawable);
|
gimp_drawable_detach (drawable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -510,7 +509,6 @@ void set_XpmImage (XpmColor *array,
|
||||||
|
|
||||||
*p='\0'; /* C and its stupid null-terminated strings...*/
|
*p='\0'; /* C and its stupid null-terminated strings...*/
|
||||||
|
|
||||||
|
|
||||||
array[index].symbolic = NULL;
|
array[index].symbolic = NULL;
|
||||||
array[index].m_color = NULL;
|
array[index].m_color = NULL;
|
||||||
array[index].g4_color = NULL;
|
array[index].g4_color = NULL;
|
||||||
|
@ -530,6 +528,7 @@ void create_colormap_from_hash (gpointer gkey,
|
||||||
{
|
{
|
||||||
rgbkey *key = gkey;
|
rgbkey *key = gkey;
|
||||||
char *string = g_new(char, 8);
|
char *string = g_new(char, 8);
|
||||||
|
|
||||||
sprintf(string, "#%02X%02X%02X", (int)key->r, (int)key->g, (int)key->b);
|
sprintf(string, "#%02X%02X%02X", (int)key->r, (int)key->g, (int)key->b);
|
||||||
set_XpmImage(user_data, *((int *) value), string);
|
set_XpmImage(user_data, *((int *) value), string);
|
||||||
}
|
}
|
||||||
|
@ -642,6 +641,7 @@ save_image (char *filename,
|
||||||
/* allocate a pixel region to work with */
|
/* allocate a pixel region to work with */
|
||||||
if ((buffer = g_new(guchar, gimp_tile_height()*width*drawable->bpp)) == NULL)
|
if ((buffer = g_new(guchar, gimp_tile_height()*width*drawable->bpp)) == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
gimp_pixel_rgn_init (&pixel_rgn, drawable,
|
gimp_pixel_rgn_init (&pixel_rgn, drawable,
|
||||||
0, 0,
|
0, 0,
|
||||||
width, height,
|
width, height,
|
||||||
|
@ -696,7 +696,6 @@ save_image (char *filename,
|
||||||
/* kick the progress bar */
|
/* kick the progress bar */
|
||||||
gimp_progress_update ((double) (i+j) / (double) height);
|
gimp_progress_update ((double) (i+j) / (double) height);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
g_free(buffer);
|
g_free(buffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue