Page 1 of 1

[Patch] DevIL-1.7.4

Posted: Wed Dec 31, 2008 15:32
by Undefined
This patch is for DevIL >= 1.7.4
I didn't no if it is ok - please check it.
On my Linux System it works

Code: Select all

--- ./ImageCodecModules/DevILImageCodec/CEGUIDevILImageCodec.cpp.orig   2008-12-31 16:19:15.000000000 +0100
+++ ./ImageCodecModules/DevILImageCodec/CEGUIDevILImageCodec.cpp   2008-12-31 16:21:26.000000000 +0100
@@ -59,5 +59,5 @@
     ilBindImage(imgName);
 
-    if (ilLoadL(IL_TYPE_UNKNOWN, (ILvoid*)data.getDataPtr(), data.getSize()) != IL_FALSE)
+    if (ilLoadL(IL_TYPE_UNKNOWN, data.getDataPtr(), data.getSize()) != IL_FALSE)
     {
         // get details about size of loaded image
@@ -86,5 +86,5 @@
             break;
         };
-        ilCopyPixels(0, 0, 0, width, height, 1, ilfmt, IL_UNSIGNED_BYTE, (ILvoid*)tmpBuff);
+        ilCopyPixels(0, 0, 0, width, height, 1, ilfmt, IL_UNSIGNED_BYTE, tmpBuff);
 
         // delete DevIL image

Posted: Wed Dec 31, 2008 16:28
by CrazyEddie
Hi, and welcome :)

thanks for the patch, I'll take a closer look once I get back into action, it looks ok from a cursory glance.

It's quite surprising to see new development from DevIL - apparently the guy takes longer breaks than I do :)

Happy new year!

CE.