Can't properly scale down mouse coordinates to a smaller RenderTarget

I didnt look at code but from experience (pos/2) - (viewport.xy/2)… or is it+…