Page 1 of 1

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

Posted: Wed Jan 08, 2025 6:50 pm
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

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

Posted: Wed Jan 08, 2025 7:36 pm
by mk-soft
Perhaps with OpenWindowedScreen with OpenWindow full screen ...

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

Posted: Thu Jan 09, 2025 9:26 am
by Fred
Yes a fullscreen openwindow is much better nowaday than using native screen switch

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

Posted: Thu Jan 09, 2025 5:24 pm
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.