Win32: Make PPSSPP DPI aware to avoid flickering in fullscreen on some PC hardware setups.
Use a safer method of calling the DPI stuff.
Merge pull request #5494 from thedax/win32DPIAware

Win32: Make PPSSPP DPI aware to avoid flickering in fullscreen on some PC hardware setups.
Detect bad mipmap sizes, autogen mipmaps in this case. Might help part of #2603

(outrun)