|
|
Home » Developing U++ » U++ Developers corner » Current porting state?
|
|
|
|
|
|
|
Re: Current porting state? [message #5308 is a reply to message #5306] |
Wed, 13 September 2006 11:45 |
|
mirek
Messages: 14105 Registered: November 2005
|
Ultimate Member |
|
|
Image::Image(const Init& init)
{
ASSERT(init.info[0] >= 1);
Size sz;
sz.cx = PeekIL(init.info + 1);
sz.cy = PeekIL(init.info + 5);
ImageBuffer b(sz);
int i = 0;
while(i < init.scan_count) {
UnpackRLE(b[i], (const byte *)init.scans[i], sz.cx);
i++;
}
while(i < sz.cy)
memset(b[i++], 0, sizeof(RGBA) * sz.cx);
b.SetHotSpot(Point(PeekIL(init.info + 9), PeekIL(init.info + 13)));
Set(b);
}
Maybe PeekIL is the cause as it is affected by endianess.
It is defined in Core/util.h, util.cpp.
Maybe it is worth checking what is the status of
CPU_X86
CPU_LE
CPU_UNALIGNED
macros....
[Updated on: Wed, 13 September 2006 11:46] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 02:05:57 CET 2024
Total time taken to generate the page: 0.02829 seconds
|
|
|