ExamineScreen() listing resolutions that OpenScreen() cannot open - M3 Mac macOS 14.7.2 (PB6.12LTS)

Mac OSX specific forum
slinxbot2
New User
New User
Posts: 2
Joined: Wed Jan 08, 2025 5:45 pm

ExamineScreen() listing resolutions that OpenScreen() cannot open - M3 Mac macOS 14.7.2 (PB6.12LTS)

Post by slinxbot2 »

Hello, Im trying to use the OpenScreen function from M3 macbook running PB6.12LTS, macOS 14.7.2. xCode and Command Line tools v16.2. I ran the code in this thread viewtopic.php?p=592652&sid=b7a8ca4110e7 ... c89e9c#top. (debug log for this code below)

however, only a handful of the resolutiuons examined can be opened using OpenScreen(). I'm trying to migrate some old 2D games that ran on an older macOS platform with a much lower resolution but, the resolution i need will not open as a screen. Is there anything that can be done to resolve this ? As an example I can change the screen resolution to 960x800 in macOS system settings, PB lists it as an examined screen but am unable to OpenScreen()

Code: Select all

Debug Log 
--------------
Can't open  960x 600 - Depth:  32
Can't open  960x 600 - Depth:  32
Can't open  960x 600 - Depth:  32
Can't open  960x 600 - Depth:  32
Can't open  960x 600 - Depth:  32
Can't open  960x 600 - Depth:  32
3456x2160 - Depth:  32 = Succeed
3456x2160 - Depth:  32 = Succeed
3456x2160 - Depth:  32 = Succeed
3456x2160 - Depth:  32 = Succeed
3456x2160 - Depth:  32 = Succeed
3456x2160 - Depth:  32 = Succeed
3456x2234 - Depth:  32 = Succeed
3456x2234 - Depth:  32 = Succeed
3456x2234 - Depth:  32 = Succeed
3456x2234 - Depth:  32 = Succeed
3456x2234 - Depth:  32 = Succeed
3456x2234 - Depth:  32 = Succeed
2992x1870 - Depth:  32 = Succeed
2992x1870 - Depth:  32 = Succeed
2992x1870 - Depth:  32 = Succeed
2992x1870 - Depth:  32 = Succeed
2992x1870 - Depth:  32 = Succeed
2992x1870 - Depth:  32 = Succeed
2992x1934 - Depth:  32 = Succeed
2992x1934 - Depth:  32 = Succeed
2992x1934 - Depth:  32 = Succeed
2992x1934 - Depth:  32 = Succeed
2992x1934 - Depth:  32 = Succeed
2992x1934 - Depth:  32 = Succeed
2624x1640 - Depth:  32 = Succeed
2624x1640 - Depth:  32 = Succeed
2624x1640 - Depth:  32 = Succeed
2624x1640 - Depth:  32 = Succeed
2624x1640 - Depth:  32 = Succeed
2624x1640 - Depth:  32 = Succeed
2624x1696 - Depth:  32 = Succeed
2624x1696 - Depth:  32 = Succeed
2624x1696 - Depth:  32 = Succeed
2624x1696 - Depth:  32 = Succeed
2624x1696 - Depth:  32 = Succeed
2624x1696 - Depth:  32 = Succeed
2560x1600 - Depth:  32 = Succeed
2560x1600 - Depth:  32 = Succeed
2560x1600 - Depth:  32 = Succeed
2560x1600 - Depth:  32 = Succeed
2560x1600 - Depth:  32 = Succeed
2560x1600 - Depth:  32 = Succeed
2336x1460 - Depth:  32 = Succeed
2336x1460 - Depth:  32 = Succeed
2336x1460 - Depth:  32 = Succeed
2336x1460 - Depth:  32 = Succeed
2336x1460 - Depth:  32 = Succeed
2336x1460 - Depth:  32 = Succeed
2336x1510 - Depth:  32 = Succeed
2336x1510 - Depth:  32 = Succeed
2336x1510 - Depth:  32 = Succeed
2336x1510 - Depth:  32 = Succeed
2336x1510 - Depth:  32 = Succeed
2336x1510 - Depth:  32 = Succeed
Can't open 2056x1285 - Depth:  32
Can't open 2056x1285 - Depth:  32
Can't open 2056x1285 - Depth:  32
Can't open 2056x1285 - Depth:  32
Can't open 2056x1285 - Depth:  32
Can't open 2056x1285 - Depth:  32
Can't open 2056x1329 - Depth:  32
Can't open 2056x1329 - Depth:  32
Can't open 2056x1329 - Depth:  32
Can't open 2056x1329 - Depth:  32
Can't open 2056x1329 - Depth:  32
Can't open 2056x1329 - Depth:  32
1920x1200 - Depth:  32 = Succeed
1920x1200 - Depth:  32 = Succeed
1920x1200 - Depth:  32 = Succeed
1920x1200 - Depth:  32 = Succeed
1920x1200 - Depth:  32 = Succeed
1920x1200 - Depth:  32 = Succeed
Can't open 1728x1080 - Depth:  32
Can't open 1728x1080 - Depth:  32
Can't open 1728x1080 - Depth:  32
Can't open 1728x1080 - Depth:  32
Can't open 1728x1080 - Depth:  32
Can't open 1728x1080 - Depth:  32
Can't open 1728x1117 - Depth:  32
Can't open 1728x1117 - Depth:  32
Can't open 1728x1117 - Depth:  32
Can't open 1728x1117 - Depth:  32
Can't open 1728x1117 - Depth:  32
Can't open 1728x1117 - Depth:  32
Can't open 1496x 935 - Depth:  32
Can't open 1496x 935 - Depth:  32
Can't open 1496x 935 - Depth:  32
Can't open 1496x 935 - Depth:  32
Can't open 1496x 935 - Depth:  32
Can't open 1496x 935 - Depth:  32
Can't open 1496x 967 - Depth:  32
Can't open 1496x 967 - Depth:  32
Can't open 1496x 967 - Depth:  32
Can't open 1496x 967 - Depth:  32
Can't open 1496x 967 - Depth:  32
Can't open 1496x 967 - Depth:  32
Can't open 1312x 820 - Depth:  32
Can't open 1312x 820 - Depth:  32
Can't open 1312x 820 - Depth:  32
Can't open 1312x 820 - Depth:  32
Can't open 1312x 820 - Depth:  32
Can't open 1312x 820 - Depth:  32
Can't open 1312x 848 - Depth:  32
Can't open 1312x 848 - Depth:  32
Can't open 1312x 848 - Depth:  32
Can't open 1312x 848 - Depth:  32
Can't open 1312x 848 - Depth:  32
Can't open 1312x 848 - Depth:  32
Can't open 1280x 800 - Depth:  32
Can't open 1280x 800 - Depth:  32
Can't open 1280x 800 - Depth:  32
Can't open 1280x 800 - Depth:  32
Can't open 1280x 800 - Depth:  32
Can't open 1280x 800 - Depth:  32
Can't open 1168x 730 - Depth:  32
Can't open 1168x 730 - Depth:  32
Can't open 1168x 730 - Depth:  32
Can't open 1168x 730 - Depth:  32
Can't open 1168x 730 - Depth:  32
Can't open 1168x 730 - Depth:  32
Can't open 1168x 755 - Depth:  32
Can't open 1168x 755 - Depth:  32
Can't open 1168x 755 - Depth:  32
Can't open 1168x 755 - Depth:  32
Can't open 1168x 755 - Depth:  32
Can't open 1168x 755 - Depth:  32
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: ExamineScreen() listing resolutions that OpenScreen() cannot open - M3 Mac macOS 14.7.2 (PB6.12LTS)

Post by mk-soft »

Perhaps with OpenWindowedScreen with OpenWindow full screen ...
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ExamineScreen() listing resolutions that OpenScreen() cannot open - M3 Mac macOS 14.7.2 (PB6.12LTS)

Post by Fred »

Yes a fullscreen openwindow is much better nowaday than using native screen switch
slinxbot2
New User
New User
Posts: 2
Joined: Wed Jan 08, 2025 5:45 pm

Re: ExamineScreen() listing resolutions that OpenScreen() cannot open - M3 Mac macOS 14.7.2 (PB6.12LTS)

Post by slinxbot2 »

Danke / Merci

for anyone else that has this issue and needs to change old code for newer platforms. On top of changing the openscreen function to openwindowedscreen I Just needed to add the window event handler loop inside the main game loop for the windowedscreen to display anything. All working now, i can play and watch youtube at the same time. Awesome.
Post Reply