summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-05-13 15:33:58 +0000
committerOle Loots <ole@monochrom.net>2012-05-13 15:33:58 +0000
commit6d125e79b364e844523faa69d7d0861cc8f1bbf4 (patch)
tree2455f445fb10a35e5d0a7106df619c892a52c5e2
parent2c4b83b1ee1dfaf27332565b5c7bcbecc0c68f66 (diff)
downloadnetsurf-6d125e79b364e844523faa69d7d0861cc8f1bbf4.tar.gz
netsurf-6d125e79b364e844523faa69d7d0861cc8f1bbf4.tar.bz2
Fixed prototyp, comments.
svn path=/trunk/netsurf/; revision=13925
-rwxr-xr-xatari/plot/plotter.h4
-rwxr-xr-xatari/plot/plotter_vdi.c2
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;