Fix tiled rendering for big-endian (ported from libretro vba-next)