PocketMatrix forums

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

config.dwDisplayMode is ignored in WinCE

Open simple.sln

in file: myapplication.cpp
function: int GapiDrawMain(HINSTANCE hInst)
change config.dwDisplayMode:

config.dwDisplayMode = GDDISPMODE_ROTATE180;

and program run at "GDDISPMODE_NORMAL". But Win32 version work correctly.

P.S. GapiDraw 3.6b
Happens to me too, try setting the display mode after construction of the application class as follows:

Code:

GDAPPCONFIG config;
::ZeroMemory(&config;, sizeof(GDAPPCONFIG));

config.hInstance = hInst;
config.pAppTitle = _T("Minimal application");
config.dwWindowIcon = IDI_APP;
config.dwDisplayFlags = 0;
config.dwDisplayMode = GDDISPMODE_NORMAL;
config.dwMaxFPS = 30;

CMyApplication* pMyApp = new CMyApplication(config);

pMyApp->SetDisplayMode(GDDISPMODE_NORMAL);
Fix will be launched in a few days with the VS2008 update.

Cheers
Johan
Please include this is fixes: http://www.pocketmatrix.com/forums/view ... e7baa0d8c7



P.S. After the patch, minimizing application to work properly in all tested communicators (Glofiish x500/x500+/x600/... / Mio/...)!!!
wprintf: Thanks, will do that!
PostPosted: Thu Mar 20, 2008
Johan wrote:Fix will be launched in a few days with the VS2008 update.


few days? :wink: