Fix line/box erase for decor layer
This commit is contained in:
parent
52b4473f0f
commit
726acc96a0
@ -5063,9 +5063,9 @@ unsigned int decorations_ui(pixel *vid_buf,int *bsx,int *bsy, unsigned int saved
|
||||
if (lb && lm) //lm is box/line tool
|
||||
{
|
||||
if (lm == 1)//line
|
||||
line_decorations(lx, ly, mx, my, *bsx, *bsy, cr, cg, cb, b);
|
||||
line_decorations(lx, ly, mx, my, *bsx, *bsy, cr, cg, cb, lb);
|
||||
else//box
|
||||
box_decorations(lx, ly, mx, my, cr, cg, cb, b);
|
||||
box_decorations(lx, ly, mx, my, cr, cg, cb, lb);
|
||||
lm = 0;
|
||||
}
|
||||
lb = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user