From 15d95ddcf83b3f4eded19ba8f3b4f7ddb130556a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 20 May 2014 22:40:46 +0100 Subject: Ensure bitmap width/height are initialised. --- atari/plot/plot.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'atari/plot') diff --git a/atari/plot/plot.c b/atari/plot/plot.c index 0e9955cb2..cfec7b424 100755 --- a/atari/plot/plot.c +++ b/atari/plot/plot.c @@ -1031,6 +1031,9 @@ static bool bitmap_convert_8(struct bitmap * img, int x, assert( clip->g_h > 0 ); assert( clip->g_w > 0 ); + bw = bitmap_get_width( img ); + bh = bitmap_get_height( img ); + // The converted bitmap can be saved for subsequent blits, when // the bitmap is fully opaque -- cgit v1.2.3