Check for access to offset framebuffers better.

Even if the height of the framebuffer doesn't exactly match the offset.
Fixes #2759 again.
Merge pull request #6513 from unknownbrackets/bof3-hack

Check for access to offset framebuffers better