MarcusCarabas
February 27th, 2009, 01:58 AM
I've been using GNU/Linux (Ubuntu: Gutsy Gibbon) for just about a year now. These days I am teaching myself how to use SDL, and I 've run into the following problem:
I've this really simple program that loads a bitmap image into a SDL_Surface structure and draws it on the screen using SDL_BlitSurface and SDL_UpdateRect.
When Compiz is NOT enabled. That is, " System | Preferences | Appearance -> "Visual Effects" is set to "None" ", my program works as expected. It throws up a little rectangular window with a black background and displays the bmp image inside the window.
However, with Compiz enabled, that is "Visual Effects" is set to "Custom" ("Trail Focus" and translucent menus are some of the effects that become enabled) my program does not run as expected. There is no crash and no errors are displayed, but instead of showing the bmp image like it did before it simply throws up a white rectangular window with nothing in it. The size of the window is the same as before.
I've searched for this problem (and solutions to it) on-line but haven't found anything suitable. I did come across posts describing similar problems but no real solutions were given.
So, does anyone here have any idea what could be going on? Is this an issue with Compiz or SDL or me or just my particular hardware/software combination? Is there any way to get around this? Ideally I would like my SDL code to work the same regardless of the " System | Preferences | Appearance -> Visual Effects" settings.
Any help would be greatly appreciated :)
merci
marcus carabas
I've this really simple program that loads a bitmap image into a SDL_Surface structure and draws it on the screen using SDL_BlitSurface and SDL_UpdateRect.
When Compiz is NOT enabled. That is, " System | Preferences | Appearance -> "Visual Effects" is set to "None" ", my program works as expected. It throws up a little rectangular window with a black background and displays the bmp image inside the window.
However, with Compiz enabled, that is "Visual Effects" is set to "Custom" ("Trail Focus" and translucent menus are some of the effects that become enabled) my program does not run as expected. There is no crash and no errors are displayed, but instead of showing the bmp image like it did before it simply throws up a white rectangular window with nothing in it. The size of the window is the same as before.
I've searched for this problem (and solutions to it) on-line but haven't found anything suitable. I did come across posts describing similar problems but no real solutions were given.
So, does anyone here have any idea what could be going on? Is this an issue with Compiz or SDL or me or just my particular hardware/software combination? Is there any way to get around this? Ideally I would like my SDL code to work the same regardless of the " System | Preferences | Appearance -> Visual Effects" settings.
Any help would be greatly appreciated :)
merci
marcus carabas