PocketMatrix forums

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

MotoQ / Orientation problem

Hi there,

i'm trying to get my games working on the MotoQ but i'm getting a wrong orientation. here's a pic

http://www.gouky.com/ethop/31032007184.jpg

here's my buffer blitting code :

Code:

RawFrameBufferInfo rfbi;

HDC hdc = GetDC(NULL);
ExtEscape(hdc, GETRAWFRAMEBUFFER, 0, NULL, sizeof(RawFrameBufferInfo), (char *) &rfbi);
memptr = (TUint16*)rfbi.pFramePointer;
memcpy( (unsigned short*)memptr, (unsigned short*)src, (iScreenWidth*iScreenHeight)<<1 );
ReleaseDC(NULL, hdc);


I'm trying to force the Landscape mode like this :

Code:

DEVMODE devmode = {0};
devmode.dmSize = sizeof(DEVMODE);
devmode.dmDisplayOrientation = DMDO_0; //landscape mode
devmode.dmOrientation = DMORIENT_LANDSCAPE;
devmode.dmFields = DM_DISPLAYORIENTATION;
ChangeDisplaySettingsEx(NULL, &devmode, NULL, 0, NULL);


Any help would be very welcome.
Have you seen this?
http://www.pocketmatrix.com/forums/view ... ight=motoq

BTW, I really need someone to test my game on a motoQ. PM me if you can help.
I have a MotoQ (with WM6 beta though). PocketHAL is running just fine.

If you want me to test it just send me your stuff...

Daniel