Don't call create_sub_bitmap() to create empty bitmaps

This commit is contained in:
David Capello 2017-11-29 16:20:48 -03:00
parent d3d107b0ac
commit 5e7cc50cb0

View File

@ -408,6 +408,9 @@ void Alleg4Surface::drawRgbaSurface(const Surface* src, int dstx, int dsty)
void Alleg4Surface::drawRgbaSurface(const Surface* src, int srcx, int srcy, int dstx, int dsty, int w, int h)
{
if (w < 1 || h < 1)
return;
set_alpha_blender();
BITMAP* tmp = create_sub_bitmap(