summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-03-21 21:19:30 +0000
committerOle Loots <ole@monochrom.net>2012-03-21 21:19:30 +0000
commit82d93ef1e63049ed96f547c47c33a628e035817c (patch)
treed4636eacc60fc89eb883410154155ff291a3f0b1
parent38dd9128a1f8e320ffeb1930bf1f7df619547da7 (diff)
downloadnetsurf-82d93ef1e63049ed96f547c47c33a628e035817c.tar.gz
netsurf-82d93ef1e63049ed96f547c47c33a628e035817c.tar.bz2
call set_clip/get_clip, declare result variables correctly.
svn path=/trunk/netsurf/; revision=13545
-rwxr-xr-xatari/plot.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/atari/plot.c b/atari/plot.c
index fc2e1739b..25e433e13 100755
--- a/atari/plot.c
+++ b/atari/plot.c
@@ -75,14 +75,14 @@ int atari_plotter_init( char* drvrname, char * fdrvrname )
LOG(("using plotters: %s, %s", drvrname, fdrvrname));
fplotter = new_font_plotter(vdih, fdrvrname, font_flags, &err );
if(err){
- char * desc = plotter_err_str(err);
+ const char * desc = plotter_err_str(err);
die(("Unable to load font plotter %s -> %s", fdrvrname, desc ));
}
plotter = new_plotter( vdih, drvrname, &loc_pos, drvinfo->max_bpp,
flags, fplotter, &err );
if(err){
- char * desc = plotter_err_str(err);
+ const char * desc = plotter_err_str(err);
die(("Unable to load graphics plotter %s -> %s", drvrname, desc ));
}
@@ -118,13 +118,14 @@ static bool plot_polygon(const int *p, unsigned int n,
bool plot_clip(const struct rect *clip)
{
- plotter->clip( plotter, clip );
+ plotter->set_clip( plotter, clip );
return ( true );
}
-bool plot_get_clip(struct rect * out){
- plotter_get_clip( plotter , out );
+bool plot_get_clip(struct rect * out)
+{
+ plotter->get_clip( plotter, out );
return( true );
}
@@ -162,7 +163,7 @@ static bool plot_bitmap(int x, int y, int width, int height,
bmph = bitmap_get_height(bitmap);
if ( repeat_x || repeat_y ) {
- plotter_get_clip( plotter, &clip );
+ plotter->get_clip( plotter, &clip );
if( repeat_x && width == 1 && repeat_y && height == 1 ){
width = MAX( width, clip.x1 - x );
height = MAX( height, clip.y1 - y );