r13545 mono - /trunk/netsurf/atari/plot.c

netsurf at semichrome.net netsurf at semichrome.net
Wed Mar 21 21:19:31 GMT 2012


Author: mono
Date: Wed Mar 21 16:19:30 2012
New Revision: 13545

URL: http://source.netsurf-browser.org?rev=13545&view=rev
Log:
call set_clip/get_clip, declare result variables correctly. 

Modified:
    trunk/netsurf/atari/plot.c

Modified: trunk/netsurf/atari/plot.c
URL: http://source.netsurf-browser.org/trunk/netsurf/atari/plot.c?rev=13545&r1=13544&r2=13545&view=diff
==============================================================================
--- trunk/netsurf/atari/plot.c (original)
+++ trunk/netsurf/atari/plot.c Wed Mar 21 16:19:30 2012
@@ -75,14 +75,14 @@
 	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 @@
 
 bool plot_clip(const struct rect *clip)
 {
-	plotter->clip( plotter, clip );
-	return ( true );
-}
-
-
-bool plot_get_clip(struct rect * out){
-	plotter_get_clip( plotter , out );
+	plotter->set_clip( plotter, clip );
+	return ( true );
+}
+
+
+bool plot_get_clip(struct rect * out)
+{
+	plotter->get_clip( plotter, out );
 	return( true );
 }
 
@@ -162,7 +163,7 @@
 	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 );




More information about the netsurf-commits mailing list