Re: CE 6.0 Display Driver Rotation



I found the problem. Rotation was working fine if it started out non-rotated
and then
I dynamically rotate. It was the initial rotation condition that was
incorrect. The
dimensions returned by GetModeInfo needed to be swapped if rotation was
active. I added this:

// Swap the dimensions if rotating
switch(m_iRotate)
{
case DMDO_90:
case DMDO_270:
pMode->width = pInfo->height;
pMode->height = pInfo->width;
break;
default:
pMode->width = pInfo->width;
pMode->height = pInfo->height;
break;
}

and it worked fine, even from startup. So I supect the driver samples work
fine
as well, as long as you don't start out rotated.

Thanks all.


"Steve Araiza" <saraiza@xxxxxxxxxxxxxx> wrote in message
news:uYidndir_Iw4P73anZ2dnUVZ_rOqnZ2d@xxxxxxxxxxxxxx
Hi all,

I am porting a display driver from 5.0 to 6.0 for a PXA270-based
platform and I can't get rotation to work. My driver works fine
when rotation is off. When rotation is on, it does not draw on the
entire screen (crops to a square).

The driver was originally adapted from the mainstone II, the 6.0
driver was adapted from the mainstone III.

I have also tried the HFlat driver and it worked, but I could not
get it to rotate correctly either.

It looks like the GPERotate class was removed in 6.0, I assume it was
merged into the GPE class.

In 6.0, what steps should I take to modify a driver to support
rotation? (SetRotateParams ?)

Thanks in advance,

steve araiza



.



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: Intel Screen rotation Hotkey triggers when Excel 2003 closes
    ... Is this an issue with the Intel Driver or is it a ... Screen Rotation ... RtClk on the Desktop » Graphic Options » Rotation » Normal ... the onboard Intel Video driver is triggered and the screen rotates. ...
    (microsoft.public.windows.vista.general)
  • 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)
  • rotating monitor with nv(idia)?
    ... I read that the "nvidia" driver ... No cards that "nv" can handle? ... Does any method sense monitor rotation and adjust the screen ...
    (comp.os.linux.x)
  • Re: Wince4.2 core rotation
    ... Won't work unless the driver already supports rotation. ... I have tried 2 methods to rotate the screen: ... #ifdef ROTATE ...
    (microsoft.public.windowsce.embedded)