From 8723876bd53dc4137743e89e2df0ac690e6c1542 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sun, 10 Apr 2011 21:49:27 +0000 Subject: cleanup, fixed invalid option name (downloads_path) svn path=/trunk/netsurf/; revision=12181 --- atari/plot.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'atari/plot.c') diff --git a/atari/plot.c b/atari/plot.c index a9a9141b1..536b4dd5a 100755 --- a/atari/plot.c +++ b/atari/plot.c @@ -174,15 +174,18 @@ static bool plot_bitmap(int x, int y, int width, int height, } if( width != bmpw || height != bmph ) { - assert( plotter->bitmap_resize(plotter, bitmap, width, height ) == 0); - bm = bitmap->resized; + plotter->bitmap_resize(plotter, bitmap, width, height ); + if( bitmap->resized ) + bm = bitmap->resized; + else + bm = bitmap; } else { bm = bitmap; } /* out of memory? */ if( bm == NULL ) { - printf("plot: out of memory!"); + printf("plot: out of memory! bmp: %p, bmpres: %p\n", bitmap, bitmap->resized ); return( true ); } @@ -203,7 +206,7 @@ static bool plot_bitmap(int x, int y, int width, int height, xoff = clip.x0; if(repeat_y == true ) yoff = clip.y0; - */ + */ for( xf = xoff; xf < clip.x1; xf += width ) { for( yf = yoff; yf < clip.y1; yf += height ) { @@ -240,6 +243,5 @@ struct plotter_table plot = { .flush = NULL, .group_start = NULL, .group_end = NULL, - /*.option_knockout = false */ - .option_knockout = true + .option_knockout = false }; -- cgit v1.2.3