Workaround for draw before update on Windows

See #208 on github

This code isn't so good, but it may rescue some code.
What do you think?