Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.
Suggests you're not clearing the surface before drawing to it. Every time you change anything related to the window (drag, fullscreen, size, etc...) all surfaces are cleared and recreated, so they'll occupy a different space in memory each time. If you don't clear the surface after this, then it will hold whatever was in the position in memory beforehand.