summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frontend_sdl.c5
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);
}