From 6d125e79b364e844523faa69d7d0861cc8f1bbf4 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sun, 13 May 2012 15:33:58 +0000 Subject: Fixed prototyp, comments. svn path=/trunk/netsurf/; revision=13925 --- atari/plot/plotter.h | 4 ++-- atari/plot/plotter_vdi.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/atari/plot/plotter.h b/atari/plot/plotter.h index c77457aa6..40fe6c62d 100755 --- a/atari/plot/plotter.h +++ b/atari/plot/plotter.h @@ -98,8 +98,8 @@ typedef int (*_fpmf_pixel_pos)( FONT_PLOTTER self, const plot_font_style_t *fsty typedef int (*_fpmf_text)( FONT_PLOTTER self, int x, int y, const char *text, size_t length, const plot_font_style_t *fstyle); -typedef void (*_fpmf_draw_glyph)(FONT_PLOTTER self, GRECT * loc, uint8_t * pixdata, - int pitch, uint32_t colour); +typedef void (*_fpmf_draw_glyph)(FONT_PLOTTER self, GRECT * clip, GRECT * loc, + uint8_t * pixdata, int pitch, uint32_t colour); typedef int (*_fpmf_dtor)( FONT_PLOTTER self ); diff --git a/atari/plot/plotter_vdi.c b/atari/plot/plotter_vdi.c index 59411a140..87bc3c5b6 100755 --- a/atari/plot/plotter_vdi.c +++ b/atari/plot/plotter_vdi.c @@ -131,6 +131,7 @@ static inline void vsf_rgbcolor( short vdih, uint32_t cin ) static int set_clip(GEM_PLOTTER self, const struct rect * clip) { + // FIXME: consider the canvas size VIEW( self ).clipping.x0 = clip->x0; VIEW( self ).clipping.y0 = clip->y0; VIEW( self ).clipping.x1 = clip->x1; @@ -697,7 +698,6 @@ static int rectangle(GEM_PLOTTER self,int x0, int y0, int x1, int y1, const plo } if( pstyle->fill_type != PLOT_OP_TYPE_NONE ){ - short stroke_width = (short)(pstyle->stroke_type != PLOT_OP_TYPE_NONE) ? pstyle->stroke_width : 0; -- cgit v1.2.3