Desktop scale

Just starting out? Need help? Post your questions and find answers here.
akee
Enthusiast
Enthusiast
Posts: 498
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Desktop scale

Post 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
User avatar
HeX0R
Addict
Addict
Posts: 1204
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Desktop scale

Post 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.
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Desktop scale

Post by AZJIO »

Try logging out of your account and logging in again. (with DPI enabled)
akee
Enthusiast
Enthusiast
Posts: 498
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: Desktop scale

Post 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.
akee
Enthusiast
Enthusiast
Posts: 498
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: Desktop scale

Post 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?
User avatar
HeX0R
Addict
Addict
Posts: 1204
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Desktop scale

Post 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
akee
Enthusiast
Enthusiast
Posts: 498
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: Desktop scale

Post 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.
Sergey
User
User
Posts: 57
Joined: Wed Jan 12, 2022 2:41 pm

Re: Desktop scale

Post 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:
akee
Enthusiast
Enthusiast
Posts: 498
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: Desktop scale

Post by akee »

Thanks Sergey for replying but it is still 1.0.

https://imgur.com/a/4c1RJw7
User avatar
Michael Vogel
Addict
Addict
Posts: 2807
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Desktop scale

Post by Michael Vogel »

Does the following code return 96?

Code: Select all

Debug GetDeviceCaps_(GetDC_(0),#LOGPIXELSX)
breeze4me
Enthusiast
Enthusiast
Posts: 633
Joined: Thu Mar 09, 2006 9:24 am
Location: S. Kor

Re: Desktop scale

Post 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.
akee
Enthusiast
Enthusiast
Posts: 498
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: Desktop scale

Post 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.
akee
Enthusiast
Enthusiast
Posts: 498
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: Desktop scale

Post 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.
User avatar
Piero
Addict
Addict
Posts: 948
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: Desktop scale

Post 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
Post Reply