It is currently Mon Oct 14, 2019 10:17 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: PB 5.71b1 font size problem with DPI scaling compiler option
PostPosted: Thu May 09, 2019 9:00 pm 
Offline
User
User

Joined: Sun Feb 12, 2017 2:31 pm
Posts: 38
To Little John,
excuse me, I did not have enough time when I wrote a previous post.
The problem is visible on the hidpi display (set to 120 dpi) when the program is compiled with active option "Enable DPI aware executable (Windows)". All gadgets are properly scaled (enlarged), but gadget labels and other texts remain in size, just like the "Enable DPI .." option is inactive.
Of course this applies to PB version 5.71 beta 1, in version 5.70 the font scaling is correct.
Could anyone confirm this?
Best regards


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.71b1 font size problem with DPI scaling compiler op
PostPosted: Fri May 10, 2019 7:19 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3674
Location: Berlin, Germany
Hi Cezary,

thanks for providing more information about this issue.

For fixing a bug, Fred first has to find its exact location in the compiler source code. For finding the exact source of the bug, it has to be reproduced first. That's why I wrote in the other thread:
Code:
Can you post some short code that demonstrates the problem?

This is also needed for confirming the bug by other forum members, because what happens in a program often depends on the details. And if me or someone else writes a test program, it is questionable whether it will show that problem, too.

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.71b1 font size problem with DPI scaling compiler op
PostPosted: Fri May 10, 2019 8:10 pm 
Offline
User
User

Joined: Sun Feb 12, 2017 2:31 pm
Posts: 38
The problem can be demonstrated with any piece of code:
Code:
OpenWindow(0,
           500, 500,
           200, 100,
           "Test")

ButtonGadget(0, 20, 20, 80, 24, "Test")

Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
Try to compile it with and without active compiler option "Enable DPI aware executable" (on a display unit which has a resolution higer than standard) and you can see the "Test" label on the button has unchanged size, while the buttons differs in sizes.
Best regards


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.71b1 font size problem with DPI scaling compiler op
PostPosted: Sat May 11, 2019 12:04 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3674
Location: Berlin, Germany
Test with PB 5.71 beta 1 (x64) on Windows 10 (DPI 125 %)

Picture #0:
[ ] Enable DPI aware executable

Image


Picture #1:
[v] Enable DPI aware executable

Image

I see a minimal difference. The text on the button in picture #1 is more crisp.

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.71b1 font size problem with DPI scaling compiler op
PostPosted: Sat May 11, 2019 10:27 am 
Offline
User
User

Joined: Sun Feb 12, 2017 2:31 pm
Posts: 38
Look what I see, please:
Image
above is compiled with PB 5.71b1

Image
and the same, compiled with PB 5.70

Maybe it's important - I use Win10 non standard scaling in "Advanced scaling settings", set to 125%.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye