PatTheMav f1cf3ff141 UI: Fix Qt call on UI thread from graphics thread
Calling `devicePixelRatioF` from any thread but the main UI thread
triggers thread-safety warnings at runtime on macOS, because Qt uses
NSView calls to determine the value.

NSView calls are only allowed to be made from the main thread on macOS,
so instead the value is stored as a property of the OBSQTDisplay at
initialization, to be retrieved from the preview object later.

Static functions that do not have access to the preview object have the
pixel ratio passed in their call signature.
2022-07-31 19:36:34 +02:00
..
2022-07-31 18:14:41 +02:00
2022-07-31 18:14:41 +02:00
2022-07-27 00:34:04 +10:00
2019-06-23 23:49:10 -07:00
2022-07-02 16:52:39 -07:00
2020-08-17 07:18:18 -07:00
2020-08-17 07:18:18 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2022-07-31 18:14:41 +02:00
2020-01-01 15:58:48 +11:00
2020-06-21 18:23:05 -07:00
2022-07-28 20:38:51 -07:00
2020-08-17 07:18:18 -07:00
2020-08-17 07:18:18 -07:00
2019-06-23 23:49:10 -07:00
2019-06-23 23:49:10 -07:00
2019-07-21 20:53:30 -07:00