mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-23 17:42:42 +00:00
Don't call create_sub_bitmap() to create empty bitmaps
This commit is contained in:
parent
d3d107b0ac
commit
5e7cc50cb0
@ -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)
|
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();
|
set_alpha_blender();
|
||||||
|
|
||||||
BITMAP* tmp = create_sub_bitmap(
|
BITMAP* tmp = create_sub_bitmap(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user