[Done] ExamineScreenModes() duplicate resolution [PB6.00B6]

Post bugreports for the Windows version here
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 309
Joined: Sat Dec 25, 2004 2:37 pm

[Done] ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by thyphoon »

Hello ! with this code

Code: Select all

InitSprite()
If ExamineScreenModes()
  While NextScreenMode()
    If ScreenModeRefreshRate()>=60
   
    Debug Str(ScreenModeWidth())+"x"+Str(ScreenModeHeight())+"x"+Str(ScreenModeDepth())+"@"+Str(ScreenModeRefreshRate())+"Hz"

    EndIf 
  Wend
EndIf 
There is duplicates resolutions in output with PB6.006 ! But not duplicates resolution with PB5.73
is it a bug ?
320x200x32@60Hz
320x200x32@60Hz
320x240x32@60Hz
320x240x32@60Hz
320x240x32@60Hz
400x300x32@60Hz
400x300x32@60Hz
400x300x32@60Hz
512x384x32@60Hz
512x384x32@60Hz
512x384x32@60Hz
640x400x32@60Hz
640x400x32@60Hz
640x400x32@60Hz
640x480x32@60Hz
640x480x32@60Hz
640x480x32@60Hz
800x600x32@60Hz
800x600x32@60Hz
800x600x32@60Hz
1024x768x32@60Hz
1024x768x32@60Hz
1024x768x32@60Hz
1152x864x32@60Hz
1152x864x32@60Hz
1152x864x32@60Hz
1280x600x32@60Hz
1280x600x32@60Hz
1280x600x32@60Hz
1280x720x32@60Hz
1280x720x32@60Hz
1280x720x32@60Hz
1280x768x32@60Hz
1280x768x32@60Hz
1280x768x32@60Hz
1280x800x32@60Hz
1280x800x32@60Hz
1280x800x32@60Hz
1280x960x32@60Hz
1280x960x32@60Hz
1280x960x32@60Hz
1280x1024x32@60Hz
1280x1024x32@60Hz
1280x1024x32@60Hz
1360x768x32@60Hz
1360x768x32@60Hz
1360x768x32@60Hz
1366x768x32@60Hz
1366x768x32@60Hz
1366x768x32@60Hz
1400x1050x32@60Hz
1400x1050x32@60Hz
1400x1050x32@60Hz
1440x900x32@60Hz
1440x900x32@60Hz
1440x900x32@60Hz
1600x900x32@60Hz
1600x900x32@60Hz
1600x900x32@60Hz
1600x1200x32@60Hz
1600x1200x32@60Hz
1600x1200x32@60Hz
1680x1050x32@60Hz
1680x1050x32@60Hz
1680x1050x32@60Hz
1792x1344x32@60Hz
1792x1344x32@60Hz
1792x1344x32@60Hz
1856x1392x32@60Hz
1856x1392x32@60Hz
1856x1392x32@60Hz
1920x1080x32@60Hz
1920x1080x32@60Hz
1920x1080x32@60Hz
1920x1200x32@60Hz
1920x1200x32@60Hz
1920x1200x32@60Hz
1920x1440x32@60Hz
1920x1440x32@60Hz
1920x1440x32@60Hz
2048x1152x32@60Hz
2048x1152x32@60Hz
2048x1152x32@60Hz
2048x1536x32@60Hz
2048x1536x32@60Hz
2048x1536x32@60Hz
2560x1600x32@60Hz
2560x1600x32@60Hz
2560x1600x32@60Hz
2560x1920x32@60Hz
2560x1920x32@60Hz
2560x1920x32@60Hz
2560x2048x32@60Hz
2560x2048x32@60Hz
2560x2048x32@60Hz
3840x2160x32@60Hz
Fred
Administrator
Administrator
Posts: 14732
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by Fred »

It doesn't do that here, can anybody else confirm ?
BarryG
Addict
Addict
Posts: 2190
Joined: Thu Apr 18, 2019 8:17 am

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by BarryG »

Yes, I get some duplicates, but not as many as thyphoon and only with 64-bit PureBasic. Below is my entire Debug Output. I'm using PureBasic v6.00 Beta 7 (64-bit) on Windows 10 Pro (64-bit).
640x480x32@67Hz
640x480x32@72Hz
640x480x32@75Hz
720x400x32@60Hz
720x400x32@60Hz
720x400x32@60Hz
720x400x32@70Hz
800x600x32@60Hz
800x600x32@75Hz
1024x768x32@60Hz
1024x768x32@75Hz
1280x720x32@60Hz
1280x1024x32@60Hz
1280x1024x32@75Hz
1366x768x32@60Hz
1366x768x32@60Hz
1366x768x32@60Hz
1366x768x32@75Hz
1366x768x32@75Hz
1366x768x32@75Hz
1440x900x32@60Hz
1440x900x32@75Hz
1600x900x32@60Hz
1600x900x32@60Hz
1600x900x32@60Hz
1680x1050x32@60Hz
1920x1080x32@60Hz
Here is my entire Debug Output with PureBasic v5.73 (32-bit):
640x480x32@60Hz
640x480x32@67Hz
640x480x32@72Hz
640x480x32@75Hz
720x400x32@60Hz
720x400x32@70Hz
800x600x32@60Hz
800x600x32@75Hz
1024x768x32@60Hz
1024x768x32@75Hz
1280x720x32@60Hz
1280x1024x32@60Hz
1280x1024x32@75Hz
1366x768x32@60Hz
1366x768x32@75Hz
1440x900x32@60Hz
1440x900x32@75Hz
1600x900x32@60Hz
1680x1050x32@60Hz
1920x1080x32@60Hz
DeanH
Enthusiast
Enthusiast
Posts: 166
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by DeanH »

Verified. I see the same result.
Under PB 6.00 Beta 7, both 32 and 64 bit, the list contains duplicates. I get 70 entries.
Below is a test with 5.73 64-bit and 5.31 32-bit and 6.00 Beta 1 64-bit. Same result for all three. 24 entries.
Unfortunately I have not kept the Beta 2 through 6 setup files so can't test with them.

320x200x32@60Hz
320x240x32@60Hz
400x300x32@60Hz
512x384x32@60Hz
640x400x32@60Hz
640x480x32@60Hz
720x480x32@60Hz
720x576x32@60Hz
800x600x32@60Hz
1024x768x32@60Hz
1152x864x32@60Hz
1280x600x32@60Hz
1280x720x32@60Hz
1280x768x32@60Hz
1280x800x32@60Hz
1280x960x32@60Hz
1280x1024x32@60Hz
1360x768x32@60Hz
1366x768x32@60Hz
1400x1050x32@60Hz
1440x900x32@60Hz
1600x900x32@60Hz
1680x1050x32@60Hz
1920x1080x32@60Hz
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 309
Joined: Sat Dec 25, 2004 2:37 pm

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by thyphoon »

🥳Thanks for confirming that I'm not totally crazy.🤪
Cyllceaux
Enthusiast
Enthusiast
Posts: 397
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by Cyllceaux »

Maybe it's a rounding problem.

My windows sometimes shows me 2 refresh rates. 59,95hz and 60hz.
ScreenModeRefreshRate() is an integer value.
User avatar
jacdelad
Enthusiast
Enthusiast
Posts: 349
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by jacdelad »

thyphoon wrote: Thu May 19, 2022 6:54 am 🥳Thanks for confirming that I'm not totally crazy.🤪
Both things are totally unrelated to each other. :mrgreen:
PureBasic 6.0/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800+/32GB RAM/Radeon 7770 OC/3TB SSD/70TB HDD
Synology DS920+/20GB RAM/38TB
Fred
Administrator
Administrator
Posts: 14732
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by Fred »

Fixed.
User avatar
skywalk
Addict
Addict
Posts: 3692
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [Done] ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by skywalk »

Weird, I did not see duplications with v6b7?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
infratec
Always Here
Always Here
Posts: 5853
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: [Done] ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by infratec »

It was reported for b6 and it was marked as done for b6.
So in b7 it is fixed. :wink:
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 309
Joined: Sat Dec 25, 2004 2:37 pm

Re: [Done] ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by thyphoon »

Not totaly fixed, code tested 😅 With PB.00B8

Code: Select all

640x480x32@60Hz
640x480x32@72Hz
640x480x32@75Hz
720x480x32@60Hz
800x600x32@60Hz
800x600x32@72Hz
800x600x32@75Hz
1024x768x32@60Hz
1024x768x32@70Hz
1024x768x32@75Hz
1152x864x32@75Hz
1176x664x32@60Hz
1280x720x32@60Hz
1280x768x32@60Hz
1280x800x32@60Hz
1280x960x32@60Hz
1280x1024x32@60Hz
1280x1024x32@75Hz
1360x768x32@60Hz
1366x768x32@60Hz
1600x900x32@60Hz
1600x900x32@60Hz <-X2
1600x900x32@60Hz <-X3
1600x1024x32@60Hz
1600x1024x32@60Hz <-X2
1600x1024x32@60Hz <-X3
1600x1200x32@60Hz
1600x1200x32@60Hz <-X2
1600x1200x32@60Hz <-X3
1680x1050x32@60Hz
1768x992x32@60Hz
1920x1080x32@60Hz
1920x1200x32@60Hz
1920x1200x32@60Hz <-X2
1920x1200x32@60Hz <-X3
1920x1440x32@60Hz
1920x1440x32@60Hz <-X2
1920x1440x32@60Hz <-X3
2048x1536x32@60Hz
2560x1440x32@60Hz
2560x1600x32@60Hz
1440x900x32@60Hz
3840x2160x32@60Hz
DeanH
Enthusiast
Enthusiast
Posts: 166
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: [Done] ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by DeanH »

Verified. I found 10 duplicates in my list using V6B8, 64-bit Windows 10 21H2.

Code: Select all

320x200x32@60Hz
320x240x32@60Hz
400x300x32@60Hz
512x384x32@60Hz
640x400x32@60Hz
640x480x32@60Hz
640x480x32@60Hz	<--
720x480x32@60Hz
720x480x32@60Hz	<--
720x576x32@60Hz
800x600x32@60Hz
800x600x32@60Hz	<--
1024x768x32@60Hz
1024x768x32@60Hz	<--
1152x864x32@60Hz
1280x600x32@60Hz
1280x720x32@60Hz
1280x720x32@60Hz	<--
1280x768x32@60Hz
1280x800x32@60Hz
1280x800x32@60Hz	<--
1280x960x32@60Hz
1280x1024x32@60Hz
1280x1024x32@60Hz	<--
1360x768x32@60Hz
1366x768x32@60Hz
1400x1050x32@60Hz
1440x900x32@60Hz
1440x900x32@60Hz	<--
1600x900x32@60Hz
1600x900x32@60Hz	<--
1680x1050x32@60Hz
1680x1050x32@60Hz	<--
1920x1080x32@60Hz
Fred
Administrator
Administrator
Posts: 14732
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by Fred »

Could you try this lib to see if it works ? https://www.purebasic.com/beta/windows_x64/Screen
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 309
Joined: Sat Dec 25, 2004 2:37 pm

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by thyphoon »

Fred wrote: Wed Jun 01, 2022 3:31 pm Could you try this lib to see if it works ? https://www.purebasic.com/beta/windows_x64/Screen
It's Good for Me ! 🥳🎉🎊 (Lib Screen download in PureLibraries on PB6.00B8)
Last edited by thyphoon on Wed Jun 01, 2022 6:04 pm, edited 1 time in total.
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 309
Joined: Sat Dec 25, 2004 2:37 pm

Re: ExamineScreenModes() duplicate resolution [PB6.00B6]

Post by thyphoon »

But with my project i have this error when i compile
Image
Post Reply