View previous topic :: View next topic |
Author |
Message |
Vidar Apprentice
Joined: 09 Apr 2003 Posts: 239 Location: Washington, USA
|
Posted: Sat Aug 02, 2003 12:02 am Post subject: Making Wine and XFree (dynamic color depth) like each other |
|
|
Recently, I have reinstalled Gentoo for various reasons. I remembered to back up my xfree config file, but not my wine config. I am having some trouble making wine work at 16bit color depth (for games like half-life that require it) and keeping everything else at 24 bit depth.
If I switch the default depth in the xfree config file from 24 to 16, half-life/wine doesn't complain at me, but I'm stuck with ugly 16bit color, so I switched it back. Before I reinstalled gentoo, Wine would automatically switch itself to 16bit and would work fine.Putting "ScreenDepth" = "16" in the wine config file has no effect.
I am using Xfree 4.3.0-r3, nvidia driver 4496, and wine 20030709.
Here are the relevent portions of my xfree config file and wine config file.
Code: | Section "Screen"
Identifier "Screen 1"
Device "Geforce FX 5200"
Monitor "My Monitor"
# DefaultDepth 16
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection |
Code: | [x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Use a private color map
"PrivateColorMap" = "Y"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "N"
; Color depth to use on multi-depth screens
"ScreenDepth" = "16"
; Name of X11 display to use
;;"Display" = ":0.0"
; Allow the window manager to manage created windows
"Managed" = "Y"
; Use a desktop window of 640x480 for Wine
;"Desktop" = "640x480"
; Use XFree86 DGA extension if present
; (make sure /dev/mem is accessible by you !)
"UseDGA" = "Y"
; Use XShm extension if present
"UseXShm" = "Y"
; Use XVidMode extension if present
"UseXVidMode" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "Y"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "Y"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous" = "Y" |
So, how can I make it behave like before. I want to keep xfree at 24 bit, but have wine be able to go to 16bit. And like I said, my xfree config is the exact same as before when I had it working. |
|
Back to top |
|
|
wdreinhart Guru
Joined: 11 Jun 2003 Posts: 569 Location: 4QFJ12345678
|
Posted: Sat Aug 02, 2003 4:58 am Post subject: |
|
|
In your wine config file, find the version section and set Windows version to win98. That took care of Half-Life's color depth problems for me.
Code: | [Version]
; can be (win95, win98, winme, nt351, nt40, win2k, winxp, win20, win30, win31)
"Windows" = "win98"
; dos version
;"DOS" = "6.22"
|
|
|
Back to top |
|
|
Vidar Apprentice
Joined: 09 Apr 2003 Posts: 239 Location: Washington, USA
|
Posted: Sat Aug 02, 2003 5:28 am Post subject: |
|
|
Thanks! That seemed to do the trick. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|