diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-11-21 08:45:08 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-11-21 08:45:08 +0000 |
commit | 820312eb35e6fa4f0930a343e8d418c4e2011755 (patch) | |
tree | 6a151f91e1be6496b11e843c8af603addd690727 /framebuffer/convert_image.c | |
parent | 747c66c982cd36979e17d2b845f93559a9d5affd (diff) | |
download | netsurf-820312eb35e6fa4f0930a343e8d418c4e2011755.tar.gz netsurf-820312eb35e6fa4f0930a343e8d418c4e2011755.tar.bz2 |
Update for modified libnsfb API
Make thumbnailing work
svn path=/trunk/netsurf/; revision=13159
Diffstat (limited to 'framebuffer/convert_image.c')
-rw-r--r-- | framebuffer/convert_image.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/framebuffer/convert_image.c b/framebuffer/convert_image.c index f601aaa54..bf47a3515 100644 --- a/framebuffer/convert_image.c +++ b/framebuffer/convert_image.c @@ -177,7 +177,10 @@ main(int argc, char **argv) fprintf(f, "#include <sys/types.h>\n\n"); fprintf(f, "#include <stdint.h>\n\n"); fprintf(f, "#include <stdbool.h>\n\n"); - fprintf(f, "#include \"framebuffer/bitmap.h\"\n\n"); + fprintf(f, "#include <libnsfb.h>\n\n"); + fprintf(f, "#include \"desktop/plot_style.h\"\n"); + fprintf(f, "#include \"framebuffer/gui.h\"\n"); + fprintf(f, "#include \"framebuffer/fbtk.h\"\n\n"); fprintf(f, "static uint8_t %s_pixdata[] = {\n", argv[3]); for (y = 0; y < HEIGHT; ++y) { @@ -197,7 +200,7 @@ main(int argc, char **argv) } fprintf(f, "};\n\n"); - fprintf(f, "struct bitmap %s = {\n", argv[3]); + fprintf(f, "struct fbtk_bitmap %s = {\n", argv[3]); fprintf(f, "\t.width\t\t= %d,\n", WIDTH); fprintf(f, "\t.height\t\t= %d,\n", HEIGHT); fprintf(f, "\t.hot_x\t\t= %d,\n", HOT_X); |