summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-04-24 13:28:20 +0100
committerVincent Sanders <vince@kyllikki.org>2015-04-24 13:28:20 +0100
commit818b8276df618bd9dbc32e915e58a69e55d95801 (patch)
tree805e6b33c314947c0bc18b8c3126aea8657a2419 /atari
parent124de5775a3a469d797a805ebe1f97312f7e1a0c (diff)
downloadnetsurf-818b8276df618bd9dbc32e915e58a69e55d95801.tar.gz
netsurf-818b8276df618bd9dbc32e915e58a69e55d95801.tar.bz2
Convert atari to bitmap render interface
Diffstat (limited to 'atari')
-rw-r--r--atari/Makefile.target1
-rwxr-xr-xatari/bitmap.c6
-rwxr-xr-xatari/plot/plot.c2
-rwxr-xr-xatari/thumbnail.c24
4 files changed, 7 insertions, 26 deletions
diff --git a/atari/Makefile.target b/atari/Makefile.target
index 2b488e5c2..34be8a915 100644
--- a/atari/Makefile.target
+++ b/atari/Makefile.target
@@ -100,7 +100,6 @@ S_ATARI := \
statusbar.c \
settings.c \
toolbar.c \
- thumbnail.c \
treeview.c \
plot/plot.c \
plot/fontplot.c \
diff --git a/atari/bitmap.c b/atari/bitmap.c
index 72e5a20e5..431d97dc8 100755
--- a/atari/bitmap.c
+++ b/atari/bitmap.c
@@ -426,6 +426,11 @@ bool atari_bitmap_resize(struct bitmap *img, HermesHandle hermes_h,
return(true);
}
+static nserror bitmap_render(struct bitmap *bitmap, struct hlcache_handle *content)
+{
+ return NSERROR_NOT_IMPLEMENTED;
+}
+
static struct gui_bitmap_table bitmap_table = {
.create = atari_bitmap_create,
.destroy = atari_bitmap_destroy,
@@ -439,6 +444,7 @@ static struct gui_bitmap_table bitmap_table = {
.get_bpp = bitmap_get_bpp,
.save = bitmap_save,
.modified = bitmap_modified,
+ .render = bitmap_render,
};
struct gui_bitmap_table *atari_bitmap_table = &bitmap_table;
diff --git a/atari/plot/plot.c b/atari/plot/plot.c
index 583429ace..ac998a4d5 100755
--- a/atari/plot/plot.c
+++ b/atari/plot/plot.c
@@ -25,10 +25,10 @@
#include <mt_gem.h>
#include <mint/osbind.h>
-#include "image/bitmap.h"
#include "utils/log.h"
#include "utils/utf8.h"
#include "utils/utils.h"
+#include "image/bitmap.h"
#include "desktop/plotters.h"
#include "desktop/mouse.h"
diff --git a/atari/thumbnail.c b/atari/thumbnail.c
deleted file mode 100755
index 75656ec19..000000000
--- a/atari/thumbnail.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright 2010 Ole Loots <ole@monochrom.net>
- *
- * This file is part of NetSurf, http://www.netsurf-browser.org/
- *
- * NetSurf is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * NetSurf is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "desktop/thumbnail.h"
-
-bool thumbnail_create(struct hlcache_handle *content, struct bitmap *bitmap)
-{
- return false;
-}