[Solved][HiDPI] CFrame always returns scale factor 1

Got it to work, btw…

On OSX it worked straight out of the box by setting the bitmap scale factor, while on Windows I just had to check if the process was HiDPI aware and then set the zoom factor and adjust the main window size according to the OS settings.

One thing I’ve noticed though, is that the CFrame::getCurrentMouseLocation(…) returns the position with the zoom applied, while the view size of the attached components doesn’t take that into account, causing wrong results upon CView::hitTest(…) and CRect::pointInside(…) calls.

I solved this by rescaling the mouse location to the non-zoomed value, but I was wondering if this CFrame::getCurrentMouseLocation(…) behavior is by design or not.
Maybe add a method that takes zoom into account would help?

Regards,
Federico