Fix intra-buffer blit at non-1x resolutions.

Oops.
Fix a debugger crash on shutdown.
Hook Tales of Phantasia X save pictures.

Maybe other games will use the same func even.  This makes save pictures
work correctly the first time.
Merge pull request #6263 from unknownbrackets/gpu-blocktransfer

Fix intra-buffer blit, Tales of Phantasia X save pictures
Fix framebuf blit on resize.
Try scissor/region height if viewport is == 512.

Fixes Tales of Phantasia X menu in towns, where it uses a 480 tall
framebuffer but specifies a 512 tall viewport.
Skip direct blocktransfer draw in buffered.

It isn't needed anymore, and causes glitches in Tales of Phantasia X.