summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-12-25 10:01:27 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-12-25 10:01:27 +0000
commit9da0b48712c7878a83a479959e5403af6d12e043 (patch)
tree63388e496497988394f4a52930c6fa59ec0b2e9a /src
parenta3dd14380f910615d937098c8c7d44ed976cafac (diff)
downloadlibnsfb-9da0b48712c7878a83a479959e5403af6d12e043.tar.gz
libnsfb-9da0b48712c7878a83a479959e5403af6d12e043.tar.bz2
make the test app compile again
svn path=/trunk/libnsfb/; revision=9758
Diffstat (limited to 'src')
-rw-r--r--src/frontend_linux.c6
-rw-r--r--src/frontend_sdl.c1
2 files changed, 6 insertions, 1 deletions
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))) {