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