Better estimation of framebuffer sizing

Best effort here and try to better estimate the framebuffer size . Test towards my inventory with titles as many as possible . Hopefully not breaking anything .

@solarmystic , feel free to test it .

This fixes the video flickering in Wildarms XF , nothing else.