Re: CE 6.0 Display Driver Rotation
- From: "Steve Araiza" <saraiza@xxxxxxxxxxxxxx>
- Date: Fri, 26 Oct 2007 19:18:48 -0400
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
.
- References:
- CE 6.0 Display Driver Rotation
- From: Steve Araiza
- CE 6.0 Display Driver Rotation
- Prev by Date: Re: ObjectStore size change
- Next by Date: Re: FAL performance with hive-base registry in NAND flash
- Previous by thread: Re: CE 6.0 Display Driver Rotation
- Next by thread: Intermitent CE 5.0 hang at boot, PXA270, P30, hive registry, FMD
- Index(es):
Relevant Pages
|