CProgressBar: use already calculated position var for diagonal line

This commit is contained in:
2013-04-08 20:39:42 +02:00
parent 62efe2cb59
commit cd1a4c89a8

View File

@@ -146,7 +146,7 @@ void CProgressBar::paintSimple()
} }
if (pb_paint_zero && pb_value == 0) if (pb_paint_zero && pb_value == 0)
frameBuffer->paintLine(x+fr_thickness , y+fr_thickness, x+width-3, y+height-3, pb_active_col); // zero line frameBuffer->paintLine(pb_x , pb_y, pb_x+width-3, pb_y+height-3, pb_active_col); // zero line
} }
void CProgressBar::paintAdvanced() void CProgressBar::paintAdvanced()