This site is no longer active and is available for archival purposes only. Registration and login is disabled.

PocketHAL backbuffer mem layout


PocketHAL backbuffer mem layout

Postby _Alex_ » Jun 1, 2004 @ 7:46pm

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 ;)
_Alex_
pm Member
 
Posts: 29
Joined: May 23, 2004 @ 9:43pm


Postby _Alex_ » Jun 1, 2004 @ 8:00pm

_Alex_
pm Member
 
Posts: 29
Joined: May 23, 2004 @ 9:43pm


Postby fast_rx » Jun 1, 2004 @ 8:07pm

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]
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Jun 1, 2004 @ 8:11pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby _Alex_ » Jun 1, 2004 @ 8:12pm

_Alex_
pm Member
 
Posts: 29
Joined: May 23, 2004 @ 9:43pm


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum