I tried that code, but is happening the same, with resolution scale 25% on the middle of the screen i get x=0.25 and y=0.25 and with resolution scale 100% i get x=0.5 and y=0.5
Other fact is that the GetMousePosition(MouseX, MouseY) function returns the same value on both settings (0.5).
(I’m trying to trace a line on the screen between the position of mouse and the current character location, so this line is different with the differents scales)
Ran into this as well in trying to use ViewportToVirtualDesktopPixel.
The problem is that CalcSceneView takes the screen percentage into account, but higher up in the stack the scaling is not reverted before converting from screen fractions into pixels.
While this can be handled like suggested in the case of ProjectWorldLocationToScreen, the same can’t be applied in the case of ViewportToVirtualDesktopPixel as this also shifts the coordinates by the viewport offset.