diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-03-10 21:45:54 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-03-10 21:45:54 +0000 |
commit | 2b309755d61d979ce37de9329c9394312b32fdc9 (patch) | |
tree | 5de1d8dbbd75cd0d7fee999cd0532d2add7642f4 /framebuffer/fb_plotters.c | |
parent | 652330380f3cd60b04f46673fa22a16af5a7fc8f (diff) | |
download | netsurf-2b309755d61d979ce37de9329c9394312b32fdc9.tar.gz netsurf-2b309755d61d979ce37de9329c9394312b32fdc9.tar.bz2 |
move framebuffer port to framebuffer toolkit
svn path=/trunk/netsurf/; revision=6760
Diffstat (limited to 'framebuffer/fb_plotters.c')
-rw-r--r-- | framebuffer/fb_plotters.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/framebuffer/fb_plotters.c b/framebuffer/fb_plotters.c index 2428dcc6a..dc3172a21 100644 --- a/framebuffer/fb_plotters.c +++ b/framebuffer/fb_plotters.c @@ -24,14 +24,18 @@ #include "utils/log.h" #include "utils/utf8.h" +#include "desktop/browser.h" #include "desktop/plotters.h" #include "framebuffer/fb_gui.h" +#include "framebuffer/fb_tk.h" #include "framebuffer/fb_plotters.h" #include "framebuffer/fb_bitmap.h" #include "framebuffer/fb_font.h" #include "framebuffer/fb_frontend.h" +extern fbtk_widget_t *fbtk; + /* max height the poly plotter can cope with */ #define WINDOW_HEIGHT (2048) @@ -184,17 +188,14 @@ bool fb_plotters_clip_line_ctx(int *x0, int *y0, int *x1, int *y1) bool fb_clip(int x0, int y0, int x1, int y1) { bbox_t clip; - struct gui_window *g; - - g = window_list; if (x1 < x0) SWAP(x0, x1); if (y1 < y0) SWAP(y0, y1); - clip.x0 = g->x; - clip.y0 = g->y; - clip.x1 = g->x + g->width; - clip.y1 = g->y + g->height; + clip.x0 = fbtk_get_x(fbtk); + clip.y0 = fbtk_get_y(fbtk); + clip.x1 = fbtk_get_width(fbtk); + clip.y1 = fbtk_get_height(fbtk); if (fb_plotters_clip_rect(&clip, &x0, &y0, &x1, &y1)) { /* new clipping region is inside the root window */ @@ -202,7 +203,7 @@ bool fb_clip(int x0, int y0, int x1, int y1) fb_plot_ctx.y0 = y0; fb_plot_ctx.x1 = x1; fb_plot_ctx.y1 = y1; - } + } /*LOG(("%d, %d - %d, %d clipped to %d, %d - %d, %d", x0,y0,x1,y1, |