From 818b8276df618bd9dbc32e915e58a69e55d95801 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 24 Apr 2015 13:28:20 +0100 Subject: Convert atari to bitmap render interface --- atari/Makefile.target | 1 - atari/bitmap.c | 6 ++++++ atari/plot/plot.c | 2 +- atari/thumbnail.c | 24 ------------------------ 4 files changed, 7 insertions(+), 26 deletions(-) delete mode 100755 atari/thumbnail.c 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 #include -#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 - * - * 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 . - */ - -#include "desktop/thumbnail.h" - -bool thumbnail_create(struct hlcache_handle *content, struct bitmap *bitmap) -{ - return false; -} -- cgit v1.2.3