Wince4.2 core rotation
- From: eeh <terrylaiiloveu@xxxxxxxxx>
- Date: Tue, 17 Jul 2007 01:59:30 -0000
Hi,
I am using WinCE4.2 core on an embedded arm board which is bought
online. I have tried 2 methods to rotate the screen:
1. Try writing eVC program with the code here:
DEVMODE DeviceMode;
memset(&DeviceMode, NULL, sizeof(DeviceMode));
DeviceMode.dmSize=sizeof(DeviceMode);
DeviceMode.dmFields = DM_DISPLAYORIENTATION;
DeviceMode.dmDisplayOrientation = DMDO_90;
However, the WinCE screen has not rotated.
2. Try change code in the BSP file
$(_WINCEROOT)\PLATFORM\smdk2440\drivers\display\S3C2440lcd
\s3c2440disp.cpp
Original code is
#ifdef ROTATE
m_iRotate = 0;
SetRotateParms();
#endif //ROTATE
changing to
//#define ROTATE
#ifdef ROTATE
m_iRotate = DMDO_90;
SetRotateParms();
#endif //ROTATE
But the compilation generates many errors.
Could anyone help me to explain why this happens or how can I do the
rotation?
Thanks!
.
- Follow-Ups:
- Re: Wince4.2 core rotation
- From: Dean Ramsier
- Re: Wince4.2 core rotation
- From: Steve Maillet \(MVP\)
- Re: Wince4.2 core rotation
- Prev by Date: CE 5.0 DirectDraw AlphaBlt won't pass DDARGB scale factors
- Next by Date: Re: Wince4.2 core rotation
- Previous by thread: CE 5.0 DirectDraw AlphaBlt won't pass DDARGB scale factors
- Next by thread: Re: Wince4.2 core rotation
- Index(es):