SDL Fullscreen and Gnome-panel
- by Daniel
On Ubuntu 10.10, the following SDL code cause Gnome-panel to cease updating its drawing, however it does still function (ie windows on the panel open where they should be, but you just have to know where they 'would be' on instinct/memory).
Gnome-panel also leaves a "Untitled window" box in the panel.
#include <SDL.h>
int main() {
SDL_Surface* Screen;
if(SDL_Init(SDL_INIT_VIDEO) < 0) {
return 1;
}
Screen = SDL_SetVideoMode(1280, 1024, 32, SDL_OPENGL | SDL_FULLSCREEN);
SDL_FreeSurface(Screen);
SDL_Quit();
return 0;
}
Is this something wrong with SDL? Something wrong with the code? Something wrong with Gnome-panel?
Hopefully we can find out :)
Note: SDL tag request? Seeing as it is quite popular when searched: http://askubuntu.com/search?q=SDL