PocketMatrix forums

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

Changing orientation on-the-fly

I have a problem with changing orientation in PPC 2003 SE devices. After changing from Portrait to lanscape, the PF soft updates only right part of screen, because it thinks screen width is 240!
How do I overcome this?
Thanks
You should shutdown and reinitialize the display with the new orientation.
blaster · 20 Apr 2006, 10:20 UTC — Thanks
I did try this and follow: http://pocketfrog.droneship.com/FAQ.html
but 1) no Display::Close() method; 2) if use m_display.reset(), then create display again it hangs. Create failed. What's wrong?
if(bWMode != m_bLandscape) {
if(m_pRedrawSurface)
delete m_pRedrawSurface;
m_pRedrawSurface = NULL;
m_display.reset();
InitDisplay();
m_bLandscape = bWMode;
m_bRedraw = true;
}
I've resolve this problem. Just shutdown GAPI and create it again. I guess some memory leaks here, but at least it works. Thank you.