From: Christer P. <pa...@no...> - 2002-01-16 10:44:22
|
Hi Miguel! Miguel Freitas wrote: > > I'm no SDL specialist but i found no way neither to tell it use an > existing window nor change it's position (like syncfb does to the overlay) > You can tell SDL to use an existing window. The demo code at http://www.libsdl.org/projects/gtk-demo/index.html demonstrates the technique. Basically, you pass the window ID to SDL through the SDL_WINDOWID environment variable: char SDL_windowhack[32]; sprintf(SDL_windowhack,"SDL_WINDOWID=%ld", GDK_WINDOW_XWINDOW(mainwin->window)); putenv(SDL_windowhack); Changing the window size, etc, is in the Linux FAQ (http://www.libsdl.org/faq/FAQ-Linux.html#LINUX_13). This is, of course, X specific. -- Christer Palm |