Page 1 of 1

Desktop scale

Posted: Fri May 10, 2024 1:39 pm
by akee
PB 6.10. Is the desktop scale suppose to be constant 100? I set my display scale to 150%. however the scale still shows 100 instead of 150 even if DPI aware is unchecked.

Code: Select all

c = ExamineDesktops()
For a = 0 To c - 1
  Debug "name : " + DesktopName(a)
  Debug "resolution : " + Str(DesktopResolutionX()) + " " + Str(DesktopResolutionY())
  Debug "scale : " + Str(DesktopScaledX(100)) + " " + Str(DesktopScaledY(100))
  Debug "unscale : " + Str(DesktopUnscaledX(100)) + " " + Str(DesktopUnscaledY(100))
Next
End

Re: Desktop scale

Posted: Fri May 10, 2024 7:01 pm
by HeX0R
akee wrote: Fri May 10, 2024 1:39 pm PB 6.10. Is the desktop scale suppose to be constant 100? I set my display scale to 150%. however the scale still shows 100 instead of 150 even if DPI aware is unchecked.
It's not "even if DPI aware is unchecked", but "because DPI aware is unchecked"
See remarks in the help.

Re: Desktop scale

Posted: Fri May 10, 2024 7:13 pm
by AZJIO
Try logging out of your account and logging in again. (with DPI enabled)

Re: Desktop scale

Posted: Sat May 11, 2024 4:11 am
by akee
HeX0R wrote: Fri May 10, 2024 7:01 pm It's not "even if DPI aware is unchecked", but "because DPI aware is unchecked"
See remarks in the help.
What I mean is both instances checked and unchecked with DPI aware or not it does not work.

Re: Desktop scale

Posted: Sat May 11, 2024 4:13 am
by akee
AZJIO wrote: Fri May 10, 2024 7:13 pm Try logging out of your account and logging in again. (with DPI enabled)
Did... still shows 100. For reference I am using AMD's RX 6700 XT. Is yours a nVidia?

Re: Desktop scale

Posted: Sat May 11, 2024 10:11 pm
by HeX0R
You probably have more than one monitor and your main monitor is set to 100%?
Unfortunately those commands are not really multi-monitor-friendly

Re: Desktop scale

Posted: Sun May 12, 2024 7:37 am
by akee
HeX0R wrote: Sat May 11, 2024 10:11 pm You probably have more than one monitor and your main monitor is set to 100%?
Unfortunately those commands are not really multi-monitor-friendly
nope only 1... when ExamineDesktops() it returns 1.

Re: Desktop scale

Posted: Sun May 12, 2024 10:01 am
by Sergey
Hi, akee, in line "resolution : " you must use StrD instead of Str
And check these desktop DPI resolution factors
Scale and Unscale calculated from these values :wink:

Re: Desktop scale

Posted: Sun May 12, 2024 8:28 pm
by akee
Thanks Sergey for replying but it is still 1.0.

https://imgur.com/a/4c1RJw7

Re: Desktop scale

Posted: Mon May 13, 2024 8:34 am
by Michael Vogel
Does the following code return 96?

Code: Select all

Debug GetDeviceCaps_(GetDC_(0),#LOGPIXELSX)

Re: Desktop scale

Posted: Mon May 13, 2024 9:26 am
by breeze4me
akee wrote: Sun May 12, 2024 8:28 pm Thanks Sergey for replying but it is still 1.0.

https://imgur.com/a/4c1RJw7
In the image, the text in the IDE is blurred, which shows that the high DPI setting is not applied to the IDE.
Check the settings in the "Compatibility" section of the "Properties" menu item of the IDE's shortcut icon.

Re: Desktop scale

Posted: Mon May 13, 2024 4:55 pm
by akee
Michael Vogel wrote: Mon May 13, 2024 8:34 am Does the following code return 96?

Code: Select all

Debug GetDeviceCaps_(GetDC_(0),#LOGPIXELSX)
Yes.

Re: Desktop scale

Posted: Mon May 13, 2024 4:59 pm
by akee
breeze4me wrote: Mon May 13, 2024 9:26 am
akee wrote: Sun May 12, 2024 8:28 pm Thanks Sergey for replying but it is still 1.0.

https://imgur.com/a/4c1RJw7
In the image, the text in the IDE is blurred, which shows that the high DPI setting is not applied to the IDE.
Check the settings in the "Compatibility" section of the "Properties" menu item of the IDE's shortcut icon.
ah yes... fixed... thanks breeze4me.

Re: Desktop scale

Posted: Mon May 13, 2024 5:09 pm
by Piero
breeze4me wrote: Mon May 13, 2024 9:26 amCheck the settings in the "Compatibility" section of the "Properties" menu item of the IDE's shortcut icon.
Thanks; I now know that using windows 99.9% of the times to make my neighbors' kids experience the best old games wasn't a waste of time