Skip to main content

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

Hi Thomas,

glad to hear that it works for you.

Best regards, Lars

On Tue, Nov 29, 2016 at 11:15 AM, Thomas Singer <ts-swt@xxxxxxxxxxx> wrote:
> Hi Niraj and Lars,
>
> It looks like you are right. My problem was that I've added the
>
>   System.getProperties().put("swt.autoScale", "false");
>
> at the same place where I was using
>
>   DPIUtil.setDeviceZoom(100);
>
> before and this was after having created the Display instance. Setting it
> before works. Sorry for the noise and thanks for your help.
>
> --
> Best regards,
> Thomas Singer
>
>
>
> On 2016-11-29 9:16, Niraj Modi wrote:
>>
>> Hi Thomas,
>> The option to dis-able SWT auto-scaling works as expected since 4.6,
>> please double check on this at your end, may be you are missing on
>> something. Sharing the corresponding 4.6 N&N with more details on the
>> same:
>> https://www.eclipse.org/eclipse/news/4.6/platform.php#swt-autoscale-tweaks
>>
>> Regards,
>> Niraj Modi
>>
>>
>> From:   Thomas Singer <ts-swt@xxxxxxxxxxx>
>> To:     platform-swt-dev@xxxxxxxxxxx
>> Date:   11/29/2016 12:47 PM
>> Subject:        Re: [platform-swt-dev] Avoid HiDPI-autoscaling on Windows
>> Sent by:        platform-swt-dev-bounces@xxxxxxxxxxx
>>
>>
>>
>> Hi Lars,
>>
>>> are the self-drawn buttons on Windows still an issue? They should have
>>> been fixed with https://bugs.eclipse.org/bugs/show_bug.cgi?id=506371.
>>> If that is not true, please comment on this bug.
>>
>>
>> I've already did 4 days ago.
>>
>>> To set the scaling factor, IIRC you can use: ./eclipse -vmargs
>>> -Dswt.autoScale=100
>>
>>
>> As explained in the mentioned
>> <https://bugs.eclipse.org/bugs/show_bug.cgi?id=508029>, Niraj suggested
>> this, but it still autoscaled the graphics operations and the images
>> (though for the images I've found a work-around).
>>
>> --
>> Best regards,
>> Thomas Singer
>>
>>
>> On 28.11.2016 15:17, Lars Vogel wrote:
>>>
>>> Hi Thomas,
>>>
>>> are the self-drawn buttons on Windows still an issue? They should have
>>> been fixed with https://bugs.eclipse.org/bugs/show_bug.cgi?id=506371.
>>> If that is not true, please comment on this bug.
>>>
>>> To set the scaling factor, IIRC you can use: ./eclipse -vmargs
>>> -Dswt.autoScale=100
>>>
>>> Best regards, Lars
>>>
>>>
>>> On Mon, Nov 28, 2016 at 3:10 PM, Thomas Singer <ts-swt@xxxxxxxxxxx>
>>
>> wrote:
>>>>
>>>> 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
>>>> _______________________________________________
>>>> platform-swt-dev mailing list
>>>> platform-swt-dev@xxxxxxxxxxx
>>>> To change your delivery options, retrieve your password, or unsubscribe
>>
>> from
>>>>
>>>> this list, visit
>>>> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>>>
>>>
>>>
>>>
>> _______________________________________________
>> platform-swt-dev mailing list
>> platform-swt-dev@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> platform-swt-dev mailing list
>> platform-swt-dev@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



-- 
Eclipse Platform UI and e4 project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com


Back to the top