diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-12-06 22:08:54 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-12-06 22:08:54 +0000 |
commit | 2e20b874273d6aa064c579663bcf1a89b145967f (patch) | |
tree | 25ea42b6f163332ef2ec3bf54711c941692de55d | |
parent | 0f3db39f79300a8354812050cf15e3e060e71442 (diff) | |
download | libnsfb-2e20b874273d6aa064c579663bcf1a89b145967f.tar.gz libnsfb-2e20b874273d6aa064c579663bcf1a89b145967f.tar.bz2 |
Include stdlib.h for atexit().
svn path=/trunk/libnsfb/; revision=9719
-rw-r--r-- | src/frontend_sdl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontend_sdl.c b/src/frontend_sdl.c index 13ba666..b3c3f87 100644 --- a/src/frontend_sdl.c +++ b/src/frontend_sdl.c @@ -7,6 +7,7 @@ */ #include <stdbool.h> +#include <stdlib.h> #include <SDL/SDL.h> #include "libnsfb.h" @@ -549,7 +550,7 @@ static int sdl_claim(nsfb_t *nsfb, nsfb_bbox_t *box) return 0; } -static int +static int sdl_cursor(nsfb_t *nsfb, struct nsfb_cursor_s *cursor) { SDL_Surface *sdl_screen = nsfb->frontend_priv; @@ -589,7 +590,7 @@ static int sdl_update(nsfb_t *nsfb, nsfb_bbox_t *box) SDL_Surface *sdl_screen = nsfb->frontend_priv; struct nsfb_cursor_s *cursor = nsfb->cursor; - if ((cursor != NULL) && + if ((cursor != NULL) && (cursor->plotted == false)) { nsfb_cursor_plot(nsfb, cursor); } |