This is a problem I noticed in at least two games. Both based on SDL. My machine is: Pentium M 2.0GHz, 1Gb RAM, ATI X700 256Mb libsdl-1.2.11 flags are (X aalib alsa libcaca opengl xv) xorg-server-1.1.1-r4 flags are (aiglx dri input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 nptl sdl video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_vesa xorg) ati-drivers-8.30.3-r1 The games where I noticed that this happens are openttd [in portage] (in a small menu) and paraball [http://ahuh.free.fr/paraball/] (the whole background). So far I have tested the games only in my PC and another with an nvidia graphic card. This problem didn't occur in the nvidia pc. Another thing I noticed is that if I try to screenshot the window it only displays the 'background', while usually should display the 'background' and the other graphics... Dunno why this happens. Here is a screenshot: http://img296.imageshack.us/my.php?image=shot4cc.png I did a cam movie showing the pseudo-transparency problem and the corruption that happens when some window passes over it. This was made with fluxbox but I already excluded the possibility of being WM related. http://apollo.dq.fct.unl.pt/~al1133/thabug.avi I'm not sure if this is an SDL, X.org or ATI specific problem! I tested this with the opensource drivers and the problem persisted. Rebuild libsdl and nothing changed... So either some weird flag is missing or this is specific to ATI... If someone with ATI graphics could test this and see if the same happens, or else any info or help will be extremely welcome. Thanks in advance Reproducible: Always
This is SDL-1.2.11 (also may be 1.2.10 and 1.2.9) problem. SVN version of SDL 1.2 branch is fixed. You can get patch for libsdl-1.2.11 here: http://www.libsdl.org/cgi/viewvc.cgi/branches/SDL-1.2/src/video/SDL_blit_A.c?r1=2781&r2=2914&view=patch I create libsdl-1.2.11-r1.ebuild in my local overlay which fixes it.
Created attachment 108266 [details] media-libs/libsdl-1.2.11-r1.ebuild
Created attachment 108267 [details, diff] files/libsdl-1.2.11-asm-blit-fix.patch
(In reply to comment #2) > Created an attachment (id=108266) [edit] > media-libs/libsdl-1.2.11-r1.ebuild > This did not fix the problem. Rebuilt libsdl with the patch, and openttd. The problem was still there... Any other suggestions? flags maybe?
I have not any problems with openttd. Can you post openttd screenshot and how to produce this bug? I cannot recompile paraball for amd64 platform (because I do not known what compiler needed). Also try to downgrade libsdl to 1.2.8 version. P.S.: I have nvidia video card.
I Used GIMP to do the rainbow image that was behind the openttd one. The menu in the screen is the music one. I had to use a cam to take the pic, the screenshot approach didn't show the rainbow, instead showed a black screen. The song's title was clear in white without any corruption. About paraball, it seems that the compiler used is fenix [http://fenix.divsite.net/index.php?opcion=1&lang=en]. Strangely I cannot compile any of the previous versions. They all fail at some point. libsdl-1.2.7-r3 fails when addressing something about libcaca. But even without the libcaca and aalib flags it fails.
Created attachment 108309 [details] openttd pseudo-transparency screenshot 1
Created attachment 108311 [details] openttd pseudo-transparency screenshot 2
Btw recompiling aalib and libcaca didn't solve the libsdl compilation problem.
My mistake ... sorry about that. It seems that the libcaca flag was still active and that breaks all (stable) before libsdl-1.2.11 built libsdl 1.2.7-r3 and rebuilt openttd, but no change. Any ideas? I'm getting the feeling that this really has something to do with ATI graphics cards...
Did a bit more testing with some friends with opensource vs fglrx drivers and the conclusion is... ati-drivers are guilty! The opensource drivers don't display the corruption. I won't close the bug atm. New ati-drivers or libsdl might solve this problem, in the meantime wait... Thanks for all of you that spent some time trying to work around this bug.
I try to check it. I try both libsdl-1.2.8 and libsdl-1.2.11-r1 (which in portage). I try both ati-drivers and xorg-x11 drivers. OpenTTD works fine. No corruptions found.
(In reply to comment #12) > I try to check it. > I try both libsdl-1.2.8 and libsdl-1.2.11-r1 (which in portage). > I try both ati-drivers and xorg-x11 drivers. > OpenTTD works fine. No corruptions found. > Can you post your xorg.conf? I' not sure if any option could change the behavior but I will test all possibilities. I haven't tested the latest ati-drivers (8.32.5) cause X doesn't start with those.. Only tested 8.30.3-r1. The stable drivers don't build in my system.
I was able to install ati-drivers-8.32.5 without locking up X... it used to lock up after loading some dockapps dunno why. I've been messing with xorg.conf and something went right :) After installation tested the drivers and the problem is gone. openttd and paraball are corruption clean. Thank you Sergey Belyashov for all your help on this.