PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Can I make pitches constant for all PPCs with EdgeLib3.11?

Hi, Edge.

I've read about changes in framework and want to ask.
Will setting of EDISPLAYCONFIG::surfprerotate to false make pithes the same on all PocketPC devices?

Thnks in advance.
Hi Nomad,

Yes, setting this value to false always gives a backbuffer with the x-pitch equal to the colordepth (in bytes) and the y-pitch as a positive value (the rotation will be done by EDGELIB when flipping the backbuffer).

However, this feature decreases performance a small bit and isn't available for newer Symbian devices (Symbian version greater than or equal to 9.0).
That's very nice, indeed.
And maybe there is any possibility to change this option dynamically during the process of game?

I've explain why it would be great for me: I make a simple 2D game, nothing special, but my boss wants to see an ingame videos as responding to some events. So for video playing it is better to for me to set config->surfprerotate to false and for gameplay to true.

Best regards, Nomad.
Hi Nomad,

Yes, you're able to change this dynamically (however, it takes some overhead to adjust the configuration).

First adjust the prerotate option through the ecd.dispcfg structure, then call ClassEDisplay :: ChangeOrientation for the changes to take effect.