mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
Make this work again.
2005-08-30 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-io.c (format_check): Make this work again.
This commit is contained in:
parent
cc39b38159
commit
a4b3c35828
@ -1,5 +1,7 @@
|
|||||||
2005-08-30 Matthias Clasen <mclasen@redhat.com>
|
2005-08-30 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gdk-pixbuf-io.c (format_check): Make this work again.
|
||||||
|
|
||||||
* io-png.c (png_save_to_callback_write_func): Add a cast
|
* io-png.c (png_save_to_callback_write_func): Add a cast
|
||||||
to avoid compiler warnings.
|
to avoid compiler warnings.
|
||||||
|
|
||||||
|
@ -52,16 +52,17 @@ format_check (GdkPixbufModule *module, guchar *buffer, int size)
|
|||||||
gchar m;
|
gchar m;
|
||||||
GdkPixbufModulePattern *pattern;
|
GdkPixbufModulePattern *pattern;
|
||||||
gboolean anchored;
|
gboolean anchored;
|
||||||
gchar *prefix, *mask;
|
guchar *prefix;
|
||||||
|
gchar *mask;
|
||||||
|
|
||||||
for (pattern = module->info->signature; pattern->prefix; pattern++) {
|
for (pattern = module->info->signature; pattern->prefix; pattern++) {
|
||||||
if (pattern->mask && pattern->mask[0] == '*') {
|
if (pattern->mask && pattern->mask[0] == '*') {
|
||||||
prefix = pattern->prefix + 1;
|
prefix = (guchar *)pattern->prefix + 1;
|
||||||
mask = pattern->mask + 1;
|
mask = pattern->mask + 1;
|
||||||
anchored = FALSE;
|
anchored = FALSE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
prefix = pattern->prefix;
|
prefix = (guchar *)pattern->prefix;
|
||||||
mask = pattern->mask;
|
mask = pattern->mask;
|
||||||
anchored = TRUE;
|
anchored = TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user