From 2e20b874273d6aa064c579663bcf1a89b145967f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 6 Dec 2009 22:08:54 +0000 Subject: Include stdlib.h for atexit(). svn path=/trunk/libnsfb/; revision=9719 --- src/frontend_sdl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/frontend_sdl.c') 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 +#include #include #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); } -- cgit v1.2.3