fix coordinate calculation for blitbuffer rotation