WinGDI version speedup

Performance is now on par with the WinSDL version.