Ensure bitmap width/height are initialised.

This commit is contained in:
Michael Drake 2014-05-20 22:40:46 +01:00
parent fcc318cf29
commit 15d95ddcf8
1 changed files with 3 additions and 0 deletions

View File

@ -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