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 :
I'm trying to force the Landscape mode like this :
Any help would be very welcome.
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.