Page 1 of 1

PocketHAL backbuffer mem layout

PostPosted: Jun 1, 2004 @ 7:46pm
by _Alex_
Hello,

When I (for example) write 0x1111FFFF to the backbuffer at position (0,0), it turns out that 0x1111 is the color of the second pixel (position: 1,0) and 0xFFFF is at 0,0.

Is this behaviour universal across all devices, or does it depend on the video memory layout and how the backbuffer is blitted to it?

Maybe Thierry can help as I would imagine he knows the internals of PH ;)

PostPosted: Jun 1, 2004 @ 8:00pm
by _Alex_

PostPosted: Jun 1, 2004 @ 8:07pm
by fast_rx
It's just the way 32bit numbers are written...

in 0x1111FFFF
The 'FFFF' is the low byte, which will come first in the addressing of the screen, then the high byte of '1111'



[/i]

PostPosted: Jun 1, 2004 @ 8:11pm
by Kzinti

PostPosted: Jun 1, 2004 @ 8:12pm
by _Alex_