diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2011-11-25 18:08:30 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2011-11-25 18:08:30 +0000 |
commit | f32fa6fa0ea54696cac77ee6de5c55b21ca889a5 (patch) | |
tree | bc43dadadb8ef641016003d6a3d25aa6d98802ac /monkey/plot.c | |
parent | dd3ac94a9c719390773fee43bc7f071f0ffb5db4 (diff) | |
download | netsurf-f32fa6fa0ea54696cac77ee6de5c55b21ca889a5.tar.gz netsurf-f32fa6fa0ea54696cac77ee6de5c55b21ca889a5.tar.bz2 |
More response tags, updated docs with commands
svn path=/trunk/netsurf/; revision=13181
Diffstat (limited to 'monkey/plot.c')
-rw-r--r-- | monkey/plot.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/monkey/plot.c b/monkey/plot.c index c93a9a8ec..76980ce5b 100644 --- a/monkey/plot.c +++ b/monkey/plot.c @@ -18,6 +18,8 @@ #include "desktop/plotters.h" +#include <stdio.h> + static bool monkey_plot_disc(int x, int y, int radius, const plot_style_t *style) { @@ -41,7 +43,8 @@ static bool monkey_plot_text(int x, int y, const char *text, size_t length, const plot_font_style_t *fstyle) { - return true; + fprintf(stdout, "PLOT TEXT X %d Y %d STR %*s\n", x, y, (int)length, text); + return true; } static bool @@ -50,19 +53,25 @@ monkey_plot_bitmap(int x, int y, struct bitmap *bitmap, colour bg, bitmap_flags_t flags) { - return true; + fprintf(stdout, "PLOT BITMAP X %d Y %d WIDTH %d HEIGHT %d\n", + x, y, width, height); + return true; } static bool monkey_plot_rectangle(int x0, int y0, int x1, int y1, const plot_style_t *style) { - return true; + fprintf(stdout, "PLOT RECT X0 %d Y0 %d X1 %d Y1 %d\n", + x0, y0, x1, y1); + return true; } static bool monkey_plot_line(int x0, int y0, int x1, int y1, const plot_style_t *style) { - return true; + fprintf(stdout, "PLOT LINE X0 %d Y0 %d X1 %d Y1 %d\n", + x0, y0, x1, y1); + return true; } @@ -80,7 +89,9 @@ monkey_plot_path(const float *p, static bool monkey_plot_clip(const struct rect *clip) { - return true; + fprintf(stdout, "PLOT CLIP X0 %d Y0 %d X1 %d Y1 %d\n", + clip->x0, clip->y0, clip->x1, clip->y1); + return true; } const struct plotter_table monkey_plotters = { |