How do I bugfix surface size in Windows high DPI?

The bugfix for Surface glitching has been committed to the SDL library source. SDL: Handle DPI scaling in SDL_GetWindowSurface - SDL Commits - Simple Directmedia Layer (libsdl.org)