diff options
Diffstat (limited to 'sdl.c')
-rw-r--r-- | sdl.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,11 +1,26 @@ +#include <SDL/SDL.h> + #include "net.h" #include "data.h" void gui_run(void) { + int cont = 1; + SDL_Event event; + + SDL_Init(SDL_INIT_EVERYTHING); + SDL_WM_SetCaption("LimoX", NULL); + SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE); + while (cont) { + SDL_WaitEvent(&event); + if (event.type == SDL_QUIT) + cont = 0; + } + SDL_Quit(); + } void gui_connected(char* jid, char* password) { |