mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
Fixed 2 C syntax bugs, Daniel
This commit is contained in:
parent
0899b4718b
commit
91cb3bb665
@ -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
|
||||
|
@ -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 },
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user