diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-04-24 10:54:32 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-04-24 10:54:32 +0100 |
commit | 4e7dcde2b056c16a96dde6adcadb29a65ca72fde (patch) | |
tree | e935f2978d0d0bd05fba9ca5c4e407a65b47f0c4 /monkey/bitmap.c | |
parent | 1a22eb2b658215ccb1d5281a4b30a2055fe6b8f6 (diff) | |
download | netsurf-4e7dcde2b056c16a96dde6adcadb29a65ca72fde.tar.gz netsurf-4e7dcde2b056c16a96dde6adcadb29a65ca72fde.tar.bz2 |
Update monkey to use bitmap render API
Diffstat (limited to 'monkey/bitmap.c')
-rw-r--r-- | monkey/bitmap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/monkey/bitmap.c b/monkey/bitmap.c index 16c98b594..5605073ba 100644 --- a/monkey/bitmap.c +++ b/monkey/bitmap.c @@ -20,6 +20,7 @@ #include <stdio.h> #include <stdlib.h> +#include "utils/errors.h" #include "image/bitmap.h" #include "monkey/bitmap.h" @@ -123,6 +124,13 @@ static int bitmap_get_height(void *bitmap) return bmap->height; } +static nserror bitmap_render(struct bitmap *bitmap, + struct hlcache_handle *content) +{ + fprintf(stdout, "GENERIC BITMAP RENDER\n"); + return NSERROR_OK; +} + static struct gui_bitmap_table bitmap_table = { .create = bitmap_create, .destroy = bitmap_destroy, @@ -136,6 +144,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 *monkey_bitmap_table = &bitmap_table; |