PocketMatrix forums

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

PocketFrog Destroy Display, then recreate....

Hi,

I'm trying to implement a screen orientation change in my menu system in PFrog. I've read the FAQ on the PF site but i'm still having problems.

I've deleted all existing surfaces...now I have to delete the display which i do as follows:

delete(display);

Is this okay? Anyway, then I get to the hard part - "Reopen the display with the desired orientation".

I have tried:

display=PocketPC::CreateDisplay(m_hWnd,ORIENTATION_EAST);

but this doesn't work :-( Obviously the next stage is to reload my surfaces....am I missing something or just totally off course with this? Anyone have any code at hand that does this?

Thanks in advance for any help :)
Nobody have an idea then? :(
Since this is a pretty old post the answer might not be useful to you anymore (but possibly to somebody else).

The problem with you not beeing able to reinit the display has to do with the global pointers in pocketpc.cpp not beeing reset when the display gets destroyed. Please look at the following two links as they contain the info you need (and a lot of BS but I don't have the time to search for an older thread beeing more precice)
http://www.pocketmatrix.com/forums/view ... hp?t=16722
http://www.pocketmatrix.com/forums/view ... hp?t=16804