Fixed 2 C syntax bugs, Daniel

This commit is contained in:
Daniel Veillard 1999-07-31 17:20:49 +00:00
parent 0899b4718b
commit 91cb3bb665
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sat Jul 31 19:19:47 CEST 1999
* src/gdk-pixbuf-io.c:
* src/io-png.c: Fixed two obvious C syntax bugs
1999-07-29 Mark Crichton <crichton@gimp.org>
* src/io-png.c (image_save): Added PNG saving function

View File

@ -121,7 +121,7 @@ static struct {
gboolean (*format_check)(unsigned char *buffer, int size);
GModule *module;
GdkPixBuf *(*load)(FILE *f);
int (*save)(GdkPixBuf, *p, FILE *f, ...);
int (*save)(GdkPixBuf *p, FILE *f, ...);
} file_formats [] = {
{ "png", pixbuf_check_png, NULL, NULL, NULL },
{ "jpeg", pixbuf_check_jpeg, NULL, NULL, NULL },

View File

@ -174,7 +174,7 @@ int image_save(GdkPixBuf *pixbuf, FILE *file)
png_color_8 sig_bit;
gint type;
g_return_val_if_fail(f != NULL, NULL);
g_return_val_if_fail(file != NULL, NULL);
g_return_val_if_fail(pixbuf != NULL, NULL);
h = pixbuf->art_pixbuf->height;