From: [RSU]The_Assassin|BuF <the...@zi...> - 2002-03-29 19:28:26
|
Okay, we all know by now it's a problem with visuals. I always run my X server with TrueColor visual, though when setting the debug define to 1, it said a DirectColor visual is available. (Don't have the exact output, but the D(bug(*)) said the vis variable in video_x.cpp was set to DirectColor) It seemed to happen exactly when Basilisk wanted to show the window, thus when it tried to write and discovered it isn't a DirectColor visual at all. (Below the "// Show window" comment in driver_xf86dga) What I was thinking is, AFAIK, the new DGA 2.0 extension, included in XF86 4.0 and up, allows (unlike the old 1.0 version) depth and visual switching. Maybe the X server returned that the DirectColor visual is available and can be switched to, unlike the code, which seems to assume the current visual is DirectColor. So maybe we just need it to support the new 2.0 dga extension and actually do the visual/depth switch instead of just resolution. Has anyone tried to run BII 0.9 on the old 3.x XFree86 servers? They don't have dga 2.0 it and might work on them. BTW, check the README.DGA in the xc/doc directory of the XFree86 source for information about dga 2.0. <~~~~~~~~~~~~~~~||~~~~~~~~~~~~~~~> Stan Kochen <The_Assassin> <--------------------------------> Beyondunreal.com Forums <BuF> http://www.beyondunreal.com <--------------------------------> ReSpawners United - Unreal Tournament clan <RSU> http://www.clanrsu.com/ <~~~~~~~~~~~~~~~||~~~~~~~~~~~~~~~> ________________________________________________ Don't E-Mail, ZipMail! http://www.zipmail.com/ |
From: <gb...@di...> - 2002-03-29 23:10:42
|
Hi, > It seemed to happen exactly when Basilisk wanted to show the window, thus > when it tried to write and discovered it isn't a DirectColor visual at > all. (Below the "// Show window" comment in driver_xf86dga) On my system, default visual is TrueColor (0x21) but DirectColor is available. B2 first tries to get a DirectColor visual for gamma correction. It then uses that visual, if available. Get rid of Gtk, and you will get a more precise error from the X server. > What I was thinking is, AFAIK, the new DGA 2.0 extension, included in XF86 > 4.0 and up, allows (unlike the old 1.0 version) depth and visual > switching. I believe the VidMode extension allows depth and resolution switching even for DGA 1. > Maybe the X server returned that the DirectColor visual is available and > can be switched to, unlike the code, which seems to assume the current > visual is DirectColor. Where does the code make that assumption? The code actually does try a DirectColor visual first. XMatchVisual() returned non-zero so that of visual is available and will be used. Probably, some other bits mismatch. Bye, Gwenole. |
From: [RSU]The_Assassin|BuF <the...@zi...> - 2002-03-30 00:01:45
|
>XMatchVisual() returned non-zero > so that of >visual is available and will be used. Probably, some other > bits >mismatch. It is the XMatchVisual function that says DirectColor is available. Though it doesn't switch to DirectColor, only resolution. I'll try running without gtk and see what happens. Those numbers indeed make no sense at all. :D <~~~~~~~~~~~~~~~||~~~~~~~~~~~~~~~> Stan Kochen <The_Assassin> <--------------------------------> Beyondunreal.com Forums <BuF> http://www.beyondunreal.com <--------------------------------> ReSpawners United - Unreal Tournament clan <RSU> http://www.clanrsu.com/ <~~~~~~~~~~~~~~~||~~~~~~~~~~~~~~~> ________________________________________________ Don't E-Mail, ZipMail! http://www.zipmail.com/ |
From: Gwenole B. <gb...@di...> - 2002-03-30 00:06:36
|
Hi, > Where does the code make that assumption? The code actually does try a > DirectColor visual first. XMatchVisual() returned non-zero so that of > visual is available and will be used. Probably, some other bits > mismatch. Further readings: <http://www.motifzone.com/tmd/articles/DefaultVisual/DefaultVisual.html> BTW, I tried to set DirectColor as the default visual to the XF86Config-4 config file. X won't start because that visual is not supported as a default visual for the selected depth (16). So, be it a TrueColor visual then. Problem is xdpyinfo lists DirectColor as available. Ummm... |
From: [RSU]The_Assassin|BuF <the...@zi...> - 2002-03-30 10:55:10
|
Removing the check for DirectColor works but the colors are all messed up. Running X in DirectColor as standard visual works, but that messes up colors too and not only in Basilisk but X itself including ofcourse all the apps running on it. Can't remove Gtk btw, alot of other apps I use need it. I'll look at that page in a sec. <~~~~~~~~~~~~~~~||~~~~~~~~~~~~~~~> Stan Kochen <The_Assassin> <--------------------------------> Beyondunreal.com Forums <BuF> http://www.beyondunreal.com <--------------------------------> ReSpawners United - Unreal Tournament clan <RSU> http://www.clanrsu.com/ <~~~~~~~~~~~~~~~||~~~~~~~~~~~~~~~> ________________________________________________ Don't E-Mail, ZipMail! http://www.zipmail.com/ |
From: <gb...@di...> - 2002-03-30 16:44:01
|
Hi, > Removing the check for DirectColor works Of course but DirectColor is necessary for gamma correction. > Can't remove Gtk btw, alot of other apps I use need it. Huh?? Add --without-gtk to the configure script. |
From: [RSU]The_Assassin|BuF <the...@zi...> - 2002-03-30 22:18:00
|
>Huh?? Add --without-gtk to the configure script. ... LOL! Sorry, I was doing multiple things at a time, I'll look into it. Anyways, that URL you gave me didn't make sense here. I'm not really and X programmer (yet) and I only now some basic stuff. I'm just a beginning programmer, I only know some file access and network stuff. And Escape Velocity Nova is keeping me from learning even more. ;) <~~~~~~~~~~~~~~~||~~~~~~~~~~~~~~~> Stan Kochen <The_Assassin> <--------------------------------> Beyondunreal.com Forums <BuF> http://www.beyondunreal.com <--------------------------------> ReSpawners United - Unreal Tournament clan <RSU> http://www.clanrsu.com/ <~~~~~~~~~~~~~~~||~~~~~~~~~~~~~~~> ________________________________________________ Don't E-Mail, ZipMail! http://www.zipmail.com/ |