Re: Wince4.2 core rotation



(1) Won't work unless the driver already supports rotation. Apparently
yours doesn't.
(2) Looks like the driver doesn't support rotation. There's a little more
to getting it to work than just calling a couple APIs. It's actually not
that difficult, but you or whoever is writing the driver will have to do the
work to implement it.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"eeh" <terrylaiiloveu@xxxxxxxxx> wrote in message
news:1184637570.827273.178070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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!



.



Relevant Pages

  • Re: X-Server Rotation
    ... > At the moment i use XFree86 but if i rotate the screen with "OPTION" ... The rotation is driver specific, so all depends on which driver you are using. ... XFree86 or Xorg (distros that still uses XFree86 usually have the now quite ...
    (comp.os.linux.x)
  • Re: Pocketop Keyboard Driver and Screen Rotation using WM2003
    ... software for its drivers based on NYDITOT. ... If you want to rotate the screen, you will have to purchase the full version ... The driver for the Pocketop Infrared Keyboard also ... When setting rotation, the tool asks me if it should activate the ...
    (microsoft.public.pocketpc)
  • Re: CE 6.0 Display Driver Rotation
    ... Rotation was working fine if it started out non-rotated ... I dynamically rotate. ... I am porting a display driver from 5.0 to 6.0 for a PXA270-based ... It looks like the GPERotate class was removed in 6.0, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: BitBlt in landscape mode
    ... > On systems with hardware doing the rotation yes, ... > the driver doesn't just rewire things. ... rotate it, and we magically get the same performances. ...
    (microsoft.public.pocketpc.developer)
  • Re: Newbie looking for info on basic graphics with Delphi.
    ... The wireframe itself is of course three-dimensional; for rendering ... \y/ over an angle phi is done by ... Even knowing *why* it can't really do anything else than rotate ... since rotation is about the model's origin, ...
    (comp.lang.pascal.delphi.misc)