Page 1 of 1
DPI awareness broken?
Posted: Sun Jun 19, 2022 3:30 pm
by jacdelad
Hi,
I recently upgraded to Beta 10 and now my stuff seems to be not DPI aware anymore. Is it possibly broken?
Re: DPI arlwareness broken?
Posted: Mon Jun 20, 2022 8:28 pm
by Olli
Hello jacdelad,
your question should have more effect on the bug section, hoping it is not a big problem. The dpi awareness gives headaches sometimes...
Re: DPI arlwareness broken?
Posted: Tue Jun 21, 2022 1:06 pm
by jacdelad
Hi Olli,
I am not sure if it's a bug. I just realized, that my Ribbon Module is not rendered correctly anymore, no matter if I turn dpi awareness on or off (it had to be turned on before).
Re: DPI awareness broken?
Posted: Wed Jun 22, 2022 9:46 pm
by Olli
I have poor control of the DPI awareness. I understand how it works, but I waste time adapting it. There is also this difference in treatment between a new source file and a saved file: it changes, the result is not always fixed, and there is no control variable to ensure support or not...
Re: DPI awareness broken?
Posted: Wed Jun 22, 2022 10:48 pm
by Olli
I confirm. I have two source files in front of me. They are exactly the same. The 1st has undergone an activation of the DPI option, then a deactivation of this DPI option, while the other has not undergone a change of DPI option: the result is different.
Problem #1 :
DPI is a 3-characters keyword, what it is forbidden in the search option of the forum.
Problem #2: Is the problem on the IDE ? Or on the compiler ?
Problem #3: Is the problem on Windows management (no link with pureBasic), or on pureBasic ?
Code: Select all
;1/4 of the desktop sized borderless window
ExamineDesktops()
w = DesktopUnscaledX(DesktopWidth(0) / 2)
h = DesktopUnscaledY(DesktopHeight(0) / 2)
OpenWindow(0, 0, 0, w, h, "", #PB_Window_Borderless)
Repeat
Until WaitWindowEvent() = #PB_Event_LeftClick
Same IDE meta datas in the file, but full different result. Absolutely without logic rule...
It is even incredible : active each DPI option for each source = same result. Then switch off each DPI option for each source = different result.
2 same little programs exactly...
https://m.youtube.com/watch?v=NaT5z0-tBsg
Demo PB 5.73 LTS x64
No I cannot... I try a third...
1) IDE [New]...
2) I copy from the "right" source, and paste it to the new one...
3) Run =
wrong !
I try a fourth...
Run = wrong
I switch on DPI on the third...
Synthesis of the 4 sources...
dpiAware.pb [no DPI] =OK
toDel.pb [no DPI] =WRONG
{new} [DPI] =OK
{new} [no DPI] =WRONG
truth table...
0 = 1
0 = 0
1 = 1
0 = 0
I give up...