SDL Fullscreen and Gnome-panel
Posted
by
Daniel
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Daniel
Published on 2011-02-05T08:38:53Z
Indexed on
2011/02/05
15:33 UTC
Read the original article
Hit count: 356
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
© Ask Ubuntu or respective owner