summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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))) {