[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Diff: kimgip PNG write fix
From: Sirtaj Singh Kang <ssk () physics ! unimelb ! edu ! au>
Date: 1999-01-30 9:45:29
[Download RAW message or body]
Hi,
Please review this diff for kimgio. It should fix the problems people have
with old PNG libraries.
-Taj.
Sirtaj S. Kang taj@kde.org ssk@physics.unimelb.edu.au
School of Physics Univ of Melbourne KDE: The Desktop sans Toga
["pdiff" (TEXT/PLAIN)]
Index: pngr.cpp
===================================================================
RCS file: /home/kde/kdelibs/kimgio/pngr.cpp,v
retrieving revision 1.4
diff -u -r1.4 pngr.cpp
--- pngr.cpp 1998/12/09 06:19:07 1.4
+++ pngr.cpp 1999/01/30 09:39:54
@@ -147,6 +147,8 @@
return;
}
+#if (defined PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 100)
+
void kimgio_png_write( QImageIO *iio )
{
QIODevice *f = ( iio->ioDevice() );
@@ -336,5 +338,16 @@
return;
}
+#else
+ // png library is too old
+
+void kimgio_png_write( QImageIO *iio )
+{
+ // TODO: implement this
+ warning("kimgio_png_write: not yet implemented for old PNG libraries");
+}
+
+#endif
+
#endif /* HAVE_LIBPNG */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic