WA_OpaquePaintEvent optimize