imlib png loader



seems like the png loader is failing on alpha ... so as a wild shot I
compiled imlib with warnings enabled (they aren't by default for some reason)
and got the following which I can't figure out:

io-png.c:11: warning: no previous prototype for `loader_png'
io-png.c: In function `loader_png':
io-png.c:15: warning: variable `transpar' might be clobbered by `longjmp' or `vfork'
io-png.c: At top level:
io-png.c:200: warning: no previous prototype for `inline_png'
io-png.c: In function `inline_png':
io-png.c:205: warning: variable `transpar' might be clobbered by `longjmp' or `vfork'
io-png.c: At top level:
io-png.c:553: warning: no previous prototype for `loader_alpha_png'
io-png.c:593: warning: no previous prototype for `saver_png'

then another one wrong init .. here's a patch but I'm not sure if it's
correct ... (it doesn't help the alpha thing though)

Index: modules.c
===================================================================
RCS file: /cvs/gnome/imlib/gdk_imlib/modules.c,v
retrieving revision 1.5
diff -u -r1.5 modules.c
--- modules.c   1999/01/17 21:29:05     1.5
+++ modules.c   1999/02/19 09:42:55
@@ -138,7 +138,7 @@
                if (v)
                        _gdk_imlib_load_alpha_png = ptr;
                else
-                       _gdk_imlib_load_alpha_png = (gdk_imlib_inline_fn *) load_fail_fn;
+                       _gdk_imlib_load_alpha_png = (gdk_imlib_inline_fn) load_fail_fn;
                g_free (alpha_name);
        }
 
if any of this doesn't make any sense ... that's ok ... I haven't really
slept well in two days so (3 hours of sleep ought to be enough right:) ....

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:

          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]