Fix line/box erase for decor layer

This commit is contained in:
jacksonmj 2011-07-11 17:25:58 +08:00 committed by Simon Robertshaw
parent 52b4473f0f
commit 726acc96a0

View File

@ -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 (lb && lm) //lm is box/line tool
{ {
if (lm == 1)//line 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 else//box
box_decorations(lx, ly, mx, my, cr, cg, cb, b); box_decorations(lx, ly, mx, my, cr, cg, cb, lb);
lm = 0; lm = 0;
} }
lb = 0; lb = 0;