From 9da0b48712c7878a83a479959e5403af6d12e043 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 25 Dec 2009 10:01:27 +0000 Subject: make the test app compile again svn path=/trunk/libnsfb/; revision=9758 --- src/frontend_linux.c | 6 +++++- src/frontend_sdl.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/frontend_linux.c b/src/frontend_linux.c index 3790a76..ce34cec 100644 --- a/src/frontend_linux.c +++ b/src/frontend_linux.c @@ -13,18 +13,22 @@ #include "libnsfb_event.h" #include "nsfb.h" #include "frontend.h" +#include "plotters.h" #define UNUSED(x) ((x) = (x)) static int linux_set_geometry(nsfb_t *nsfb, int width, int height, int bpp) { if (nsfb->frontend_priv != NULL) - return -1; /* if were already initialised fail */ + return -1; /* if we are already initialised fail */ nsfb->width = width; nsfb->height = height; nsfb->bpp = bpp; + /* select default sw plotters for bpp */ + select_plotters(nsfb); + return 0; } diff --git a/src/frontend_sdl.c b/src/frontend_sdl.c index cc73f43..d40eb7b 100644 --- a/src/frontend_sdl.c +++ b/src/frontend_sdl.c @@ -386,6 +386,7 @@ sdlcopy(nsfb_t *nsfb, nsfb_bbox_t *srcbox, nsfb_bbox_t *dstbox) nsfb_plot_add_rect(srcbox, dstbox, &allbox); + /* clear the cursor if its within the region to be altered */ if ((cursor != NULL) && (cursor->plotted == true) && (nsfb_plot_bbox_intersect(&allbox, &cursor->loc))) { -- cgit v1.2.3