[Wine]256 colors (8bit) graphics not working
Simon Kellett
zoxed_p at arcor.de
Wed May 18 14:19:29 CDT 2005
I am trying to get one of my kids Windows CDROM based programs to work
under Linux/wine.
With Google and man pages I got past some problems, but now the
application starts and then exists saying that it want 256 colours to run
best !! (It does the same on Win98 until you set the screen to 256
colours, then it is OK. But with Linux I thought I could find a better
solution !)
I have X normally running at 24 bits, with 16 and 8 bit entries in my
XFree86 config.
Reading the docs I added this to my .wine/config
[AppDefaults\\oshof32.exe\\x11drv]
"ScreenDepth" = "8"
"PrivateColorMap" = "Y"
I then run:
export WINEDEBUG=+palette
wine oshof32.exe
Amongst the output I get:
trace:palette:CreatePalette entries=20
trace:palette:CreatePalette returning 0x44
trace:palette:X11DRV_PALETTE_Init initializing palette manager...
trace:palette:X11DRV_PALETTE_Init visual class 4 (1)
trace:palette:GetPaletteEntries hpal = 0x44, count=20
trace:palette:GetSystemPaletteEntries hdc=0x7c,start=0,count=0
...
trace:palette:GetSystemPaletteEntries hdc=0x13a8,start=0,count=10
trace:palette:GetSystemPaletteEntries hdc=0x13a8,start=246,count=10
trace:palette:CreatePalette entries=256
trace:palette:CreatePalette returning 0x13c0
trace:palette:GDISelectPalette 0x13c4 0x13c0
trace:palette:GDIRealizePalette 0x13c4...
trace:palette:GDIRealizePalette realized 0 colors.
...
To me "CreatePalette entries=256" looks good, but the "GDIRealizePalette
realized 0 colors." does not (it appears 8 times).
Any clues !!
(I got another CDROM program to work OK: so the wine is basically setup
OK.)
(x86, Suse 9.1 + wine-20050419-0.1.i586.rpm)
TIA, Simon
--
Simon Kellett, | Gentoo Linux, Fvwm, Firefox
Darmstadt, Germany | Xemacs, Vm, Gnu
More information about the wine-users
mailing list