summaryrefslogtreecommitdiff
path: root/atari/plot.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-04-10 21:49:27 +0000
committerOle Loots <ole@monochrom.net>2011-04-10 21:49:27 +0000
commit8723876bd53dc4137743e89e2df0ac690e6c1542 (patch)
treec0499e3c18b8510b3dbe95c3745d1bc3e3fb45ab /atari/plot.c
parent9520ad67fe1435a56078dee76d6f47245b204ad7 (diff)
downloadnetsurf-8723876bd53dc4137743e89e2df0ac690e6c1542.tar.gz
netsurf-8723876bd53dc4137743e89e2df0ac690e6c1542.tar.bz2
cleanup, fixed invalid option name (downloads_path)
svn path=/trunk/netsurf/; revision=12181
Diffstat (limited to 'atari/plot.c')
-rwxr-xr-xatari/plot.c14
1 files changed, 8 insertions, 6 deletions
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
};