Some troubles with UI::scale_factor

Hi all,

I’m using SU 21.1.331 and wrote an extension that need to know the screen scale factor that SU uses.

For that I found this method : UI::scale_factor. But on an iMac with retina display it doesn’t always return the same value.

  1. If I open SU with a new empty model, UI::scale_factor return 2.0
  2. If I open SU by opening a recent model from startup UI. UI:scale_factor returns 1.0

Is somebody have the same issue ?

Regards,
Boris

This sounds like a bug. Feel free to log it to the API Issue Tracker.

1 Like

Done : Some troubles with UI::scale_factor · Issue #735 · SketchUp/api-issue-tracker · GitHub

Have a nice day !

2 Likes