riched20: Removed a useless check in painting code.