PocketMatrix forums

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

Does PocketHal 0.7.7 support landscape on the smartphone?

the code below works on smartphone
Code:

params.m_orientation = ORIENTATION_NORMAL; m_display.reset( Display::Create(hWnd, params ) );


but code below will crash:

Code:

params.m_orientation = ORIENTATION_ROTATE90CCW; m_display.reset( Display::Create(hWnd, params ) );
I tried that on my audiovox 5600 and it fails. Doesn't give any indications, just exits immediately when you run the program...

That was using pocketFrog and PHal 0.7.7c.
Landscape will work on any 240x320 smartphone. It isn't supported on 176x220 ones.

Note that it shouldn't crash, just fail. Are you validating the returned value? Perhaps it returns "false" and you ignore it?