This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to startup LCD in landscape on Mistral EVM3730 board with WINCE7 ?

Hello,

I want to modify the orientation of LCD on startup (not using rotate.exe command). Actually, start in portrait and I want to display in landscape mode.

I use WINCE700 and OMAP3730 processor.  Which file I must modify to do it ?

Thanks for answers,

Thomas RETAIL.

  • and the answer is :

    DEVMODE DevMode;

    memset(&DevMode, 0, sizeof(DevMode));

    DevMode.dmSize = sizeof (DevMode);

    DevMode.dmFields = DM_DISPLAYORIENTATION;

    DevMode.dmDisplayOrientation = DMDO_90; // 90

    if (DISP_CHANGE_SUCCESSFUL != ChangeDisplaySettingsEx(NULL, &DevMode, NULL, CDS_RESET, NULL))

    RETAILMSG(1, (L"ChangeDisplaySettingsEx failed to set rotation angles (error=%d).\n", GetLastError())); 

  • FYI: You should be able to do it without touching code. There is an Angle parameter in dss.reg (look for the correct dss.reg for your platform). Look at the comment above the parameter to see what value you should use for the various angles. Also please note that if you start seeing display issues you may have to enable VRFB feature (if not enabled already)