PocketMatrix forums

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

Rotating screen at runtime

Is there way of rotating the scrren layout at runtime using PHal?

I assume that I can destroy the display object and recreate it with diffrent parms but I was hoping hta tthere was a better way.

Ta

Sean
This is currently the only way. It is already quite fast and I haven't investigated (yet) if there is a faster way.
Just wondering, if you just destroy/recreate the Display object, can you continue using previously created surfaces? It seems to work fine on my device but will it be compatible with others too?
j.edwards wrote:Just wondering, if you just destroy/recreate the Display object, can you continue using previously created surfaces? It seems to work fine on my device but will it be compatible with others too?


Yes you can continue using your surfaces. The surfaces aren't "rotated" or in any other weird format. They are independant of the display.