Redraw bug on Windows native build