diff options
Diffstat (limited to 'framebuffer/fb_frontend_sdl.c')
-rw-r--r-- | framebuffer/fb_frontend_sdl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/framebuffer/fb_frontend_sdl.c b/framebuffer/fb_frontend_sdl.c index a953912ad..b45f371d9 100644 --- a/framebuffer/fb_frontend_sdl.c +++ b/framebuffer/fb_frontend_sdl.c @@ -58,7 +58,7 @@ framebuffer_t *fb_os_init(int argc, char** argv) newfb->width = 800; newfb->height = 600; - newfb->bpp = 16; + newfb->bpp = 32; sdl_screen = SDL_SetVideoMode(newfb->width, newfb->height, @@ -84,11 +84,14 @@ void fb_os_quit(framebuffer_t *fb) { } -void fb_os_input(struct gui_window *g) +void fb_os_input(struct gui_window *g, bool active) { SDL_Event event; - SDL_PollEvent(&event);//SDL_WaitEvent(&event); + if (active) + SDL_PollEvent(&event); + else + SDL_WaitEvent(&event); switch (event.type) { case SDL_KEYDOWN: |