Slight perf optimization outlinerect, fillrect