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