Check for access to offset framebuffers better

Even if the height of the framebuffer doesn't exactly match the offset.  Fixes #2759 again.

`gstate_c.curTextureYOffset` got all complex here...

-[Unknown]