Hello All,
I need some help with my implementation of a display driver.
I get DrvCopyBits call with following parameters:
Source bitmap: format BMF_8BPP (iBitmapFormat is 3) type STYPE_BITMAP
(iType = 0).
Destination bitmap: format BMF_32BPP (iBitmapFormat is 6) type
STYPE_DEVICE (iType = 1).
XLATEOBJ: XO_TRIVIAL (flXlate is 1).
The problem is that I am unable to convert 8bpp to 32bpp using trivial
XLATEOBJ (actually flag XO_TRIVIAL means that no translation needed).
And the result is wrong color display of the bitmap on the screen.
Has any one had some experince with this issue in DrvCopyBits?
Thank you for your help.
************************************************ display driver
printouts ***********************************************
qxldd: DrvCopyBits: src: iUniq 2367 sizlBitmap.cx 33 sizlBitmap.cy 38
iBitmapFormat 3 iType 0 fjBitmap 0 pos.x 0 pos.y 0
…
qxldd: DrvCopyBits: dest: iUniq 2367 sizlBitmap.cx 1024 sizlBitmap.cy
768 iBitmapFormat 6 iType 1 fjBitmap 32 dest.top 540 dest.left 254
dest.bottom 578 dest.right 287
qxldd: DrvCopyBits: XLATEOBJ: iUniq 1 flXlate 0x1 cEntries 256 pulXlate
0xbf9a39ec
qxldd: DrvCopyBits: pulXlate[0] = 0x0
qxldd: DrvCopyBits: pulXlate[1] = 0x1
qxldd: DrvCopyBits: pulXlate[2] = 0x2
qxldd: DrvCopyBits: pulXlate[3] = 0x3
qxldd: DrvCopyBits: pulXlate[4] = 0x4
.
.
.
Best regards,
Yan Vugenfirer
Qumranet.
Email: xxxxx@qumranet.com
Phone: 972-9-8858485 (138)
Mobile: 972-54-4758084
Skype: sm_yan