[Patch] DevIL-1.7.4

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

Undefined
Just popping in
Just popping in
Posts: 2
Joined: Wed Dec 31, 2008 15:28

[Patch] DevIL-1.7.4

Postby Undefined » Wed Dec 31, 2008 15:32

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Wed Dec 31, 2008 16:28

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.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 1 guest