Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Avoid HiDPI-autoscaling on Windows

Hi all,

As soon as SWT implemented the ImageDataProvider, we adopted it for our products (SmartGit, SmartSVN and SmartSynchronize). In the mean-time, you've decided to also add autoscaling of images as well as graphic operations. I thought to have found a good work-around to avoid the autoscaling by setting

 DPIUtil.setDeviceZoom(100);

very early. Recently, when starting to work on a dark-theme, we discovered that this invocation causes problems with the new self-drawn buttons on Windows:

<https://bugs.eclipse.org/bugs/show_bug.cgi?id=508029>

so you either may use a HiDPI screen or themed GUI on Windows - both won't work well together.

Judging from Niraj Modis responses in this bug, it looks like our above work-around is not officially supported. What do others think about this situation?

--
Best regards,
Thomas Singer


Back to the top