decrease calculation in OnPaint().