mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 03:39:51 +00:00
Fix bug creating bitmaps with width < 0 in draw_color() function
This commit is contained in:
parent
055907d008
commit
f59f6f7d5e
@ -317,6 +317,9 @@ void draw_emptyset_symbol(BITMAP* bmp, const Rect& rc, ui::Color color)
|
||||
|
||||
void draw_color(BITMAP* bmp, const Rect& rc, PixelFormat pixelFormat, const app::Color& color)
|
||||
{
|
||||
if (rc.w <= 0 || rc.h <= 0)
|
||||
return;
|
||||
|
||||
app::Color::Type type = color.getType();
|
||||
BITMAP* graph;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user