Hello,

I have a problem with porting a display driver in WinCE 6.0. The
driver is directdraw enabled. When i ran "Enumerate Display Modes""
test case, i got the following result- with bitmask all as Zeros....

.....
ddpfPixelFormat =
273541 PID:374001e TID:5aa000a {
273543 PID:374001e TID:5aa000a dwFlags (0x00000040) :
273544 PID:374001e TID:5aa000a DDPF_RGB
273545 PID:374001e TID:5aa000a dwRGBBitCount = 24
273546 PID:374001e TID:5aa000a dwRBitMask = 0x00000000
273547 PID:374001e TID:5aa000a dwGBitMask = 0x00000000
273548 PID:374001e TID:5aa000a dwBBitMask = 0x00000000
273549 PID:374001e TID:5aa000a }


When we tested the display driver in CE 5.0, we got the correct
Bitmask. We are using the same pixel format in CE 5.0 and 6.0. Also, i
havnt modified any part related to the pixel format.

The only difference i found was that, in CE 5.0, you can specify pixel
format in DDHAL structure when BuildDDHAlInfo is called. In CE 6.0
there is no such fileds.

What would be reason for, it returning bitmasks as all 0s ?. The
actual bitmask is RGB (0x000000FF, 0x0000FF00, 0x00FF0000).


One more question,
in CE 5.0, the same test case, showed the bitmasks as 0x00FF0000,
0x0000FF00, 0x000000FF instead of 0x000000FF, 0x0000FF00, 0x00FF0000
which was given as the supported bitmask in mode Info.

Please somebody help me to solve it

regards,
Gomas

Re: Display driver in CE 6.0 by gomas

gomas
Thu Dec 27 21:19:08 PST 2007

On Dec 18, 3:29=A0pm, gomas <gomas_vi...@yahoo.com> wrote:
> Hello,
>
> I have a problem with porting a display driver in WinCE 6.0. The
> driver is directdraw enabled. When i ran =A0"Enumerate Display Modes""
> test case, i got the following result- with bitmask all as Zeros....
>
> .....
> =A0ddpfPixelFormat =3D
> =A0273541 PID:374001e TID:5aa000a =A0 =A0 =A0 =A0 =A0 {
> =A0273543 PID:374001e TID:5aa000a =A0 =A0 =A0 =A0 =A0 =A0 =A0 dwFlags (0x0=
0000040) :
> =A0273544 PID:374001e TID:5aa000a =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 DDPF=
_RGB
> =A0273545 PID:374001e TID:5aa000a =A0 =A0 =A0 =A0 =A0 =A0 =A0 dwRGBBitCoun=
t =3D 24
> =A0273546 PID:374001e TID:5aa000a =A0 =A0 =A0 =A0 =A0 =A0 =A0 dwRBitMask =
=3D 0x00000000
> =A0273547 PID:374001e TID:5aa000a =A0 =A0 =A0 =A0 =A0 =A0 =A0 dwGBitMask =
=3D 0x00000000
> =A0273548 PID:374001e TID:5aa000a =A0 =A0 =A0 =A0 =A0 =A0 =A0 dwBBitMask =
=3D 0x00000000
> =A0273549 PID:374001e TID:5aa000a =A0 =A0 =A0 =A0 =A0 }
>
> When we tested the display driver in CE 5.0, we got the correct
> Bitmask. We are using the same pixel format in CE 5.0 and 6.0. Also, i
> havnt modified any part related to the pixel format.
>
> The only difference i found was that, in CE 5.0, you can specify pixel
> format in DDHAL structure when BuildDDHAlInfo is called. In CE 6.0
> there is no such fileds.
>
> What would be reason for, it returning bitmasks as all =A00s ?. The
> actual bitmask is RGB (0x000000FF, 0x0000FF00, 0x00FF0000).
>
> One more question,
> in CE 5.0, the same test case, showed the bitmasks as 0x00FF0000,
> 0x0000FF00, 0x000000FF instead of 0x000000FF, 0x0000FF00, 0x00FF0000
> which was given as the supported bitmask in mode Info.
>
> Please somebody help me to solve it
>
> regards,Gomas

Any idea ?