bug when displaying images ?

fabrice martin fabrice_martin2 at yahoo.fr
Tue May 11 03:54:57 CDT 2004


Hello,

I am using a personal application under wine with
great success. However a problem subsists: at one
point, the program reads RGB images from the disk, and
should display them. Unfortunately, they appear
completely black !
I ran wine with WINEDEBUG=+bitmap, and I think the
problem is in the following log:

trace:bitmap:X11DRV_DIB_CreateDIBSection format
(256,128), planes 1, bpp 24, size 0, colors 0 (RGB)

trace:bitmap:CreateBitmap 256x128, 16777216 colors
returning 0xb24

trace:bitmap:X11DRV_DIB_DoProtectDIBSection Changed
protection from 4 to 4

trace:bitmap:SetBitmapBits (0xb24, 98304, 0x4237b570)
256x128 16777216 colors fetched height: 128

trace:bitmap:SetBitmapBits Calling device specific
BitmapBits

trace:bitmap:X11DRV_DIB_Lock Locking 0x40273338 from
thread 0009

trace:bitmap:X11DRV_DIB_CopyDIBSection
(0x40270e58,0x402708e0,26,0,0,98,230,128)

trace:bitmap:X11DRV_DIB_DoCopyDIBSection Copying from
DIB bits to Pixmap

trace:bitmap:X11DRV_DIB_SetImageBits Dib: depth=24
r=ff0000 g=ff00 b=ff

trace:bitmap:X11DRV_DIB_SetImageBits Bmp: depth=24/32
r=ff0000 g=ff00 b=ff

trace:bitmap:X11DRV_DIB_SetImageBits
XPutImage(35651586,0x10152f18,0x10175df0,26,0,2,158,230,128)

trace:bitmap:X11DRV_DIB_Unlock Unlocking in status
AppMod

trace:bitmap:X11DRV_DIB_Unlock Unlocked 0x40273338

As you can see, images are 256x128, 24bpp. I guess the
problem comes from the conversion to pixmap ? Or from
XputImage ? I have tried setting X in 8, 16, 24 bpp
modes but images remain black...
By the way, I am using Wine 20031212, with a GeForce4
Mx, and Redhat 8.0. 
Don't hesitate to ask more info if required.

Thanks in advance for any advice !
Fabrice.


	

	
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com



More information about the wine-devel mailing list