(really?) fix refresh viewport calculations

This adds more documentation about the viewport offset calculations
for refreshing rotated viewports.

The old behaviour also was (still) buggy, even after the latest round
of fixes. Now, the offsets when rotated are hopefully calculated correct.
Merge pull request #1191 from hwhw/master

(really?) fix refresh viewport calculations