Switching to fullscreen - black screen MAC OS

BlitzMax Forums/BlitzMax Programming/Switching to fullscreen - black screen MAC OS

Ravl(Posted 2013) [#1]
Hi all,

So I received the QA from the publishers for the Mac version of Crystals of Time (http://www.indiedb.com/games/crystals-of-time).

One of the bugs I have to fix it's this one:

1. Install and launch Crystals of Time
2. Change game to windowed mode play for 1 minute and then save and quit.
3. Re-launch game and change from windowed to full-screen mode.


I cannot make this test right now but I was pretty sure it is working fine.

For switching to Fullscreen I used something like this:

EndGraphics()
Graphics (1280, 768, 32)


anyone have some tips?
thanks,


Ravl(Posted 2013) [#2]
its me again.

i was able to go on a mac now.. it was my mistake somewhere in code.

I have:

EndGraphics()
Graphics (Globals.ScreenX, Globals.ScreenY, 32)


where ScrenX and Y were 0 :D

now I fixed...


GfK(Posted 2013) [#3]
lol? :D


Ravl(Posted 2013) [#4]
if you are still curious this was my logic on mac os:

IF the game starts in 'fullscreen', I am reading the desktop resolution of the current mac and create a window with that resolution.

if the game starts in window mode i am making the default 1280 x 768 window, but I do not more read the desktop X and Y.

when switching from win to full.. because I started the game and did not read those values the ScreenX and ScreenY values were 0 :D