Skip to content

Replace remaining calls to DPIUtil::get(Native)DeviceZoom() #79

@akoch-yatta

Description

@akoch-yatta

To get rid of the static device zoom in DPIUtil, we should get rid of all remaining calls to:

  • DPIUtil::getDeviceZoom() -> Possible replacement with DPIUtil::getZoomForAutoscaleProperty(Device::getDeviceZoom())
  • DPIUtil::getNativeDeviceZoom() -> Possible replacement with Device::getDeviceZoom()

Important: problematic is that Display::getDeviceZoom() calls getPrimaryMonitor() that will throw an exception when called from another thread

Sub-issues

Metadata

Metadata

Labels

HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions