fullscreen on macos@macintel

BlitzMax Forums/BlitzMax Programming/fullscreen on macos@macintel

GregBUG(Posted 2006) [#1]
i have a problem... when i compile my game, i impose the graphic mode at 320x240px@32bpp... on windows platform it works well (the screen res change to fullscreen 320x240), but on OSX 10.4.8 (running on a MacBook Intel CoreDuo T2500 with a GMA950) the resolution doesn't switch. the fullscreen mode start, but the res is always 1280x800 so the game appears an 1/4 on the bottom side left (it fill a 320x240 area), even if i try @16bpp. to initialize the graphic mode i use these settings:

Graphics 320, 240, 32

maybe on OSX i must initialize with others settings? or maybe the GMA950 does not support these settings?

some ideas? :)

p.s. i'm sorry for my english :P


xlsior(Posted 2006) [#2]
Quite possible:

http://www.apple.com/nz/macbook/specs.html

Intel GMA 950 graphics processor with 64MB of DDR2 SDRAM shared with main memory

Supported resolutions: 1280 by 800 (native), 1152 by 720, 1024 by 768, 1024 by 640, 800 by 600, 800 by 500, 720 by 480, and 640 by 480 at 16:10 aspect ratio; 1024 by 768, 800 by 600, and 640 by 480 pixels at 4:3 aspect ratio; 720 by 480 at 3:2 aspect ratio


Of course, they could have just ommited the 'ancient' resolutions from the list since few people use them anymore.

Tip: Check the CountGraphicsModes and GetGraphicsMode commands, with which you can get a list of all resolutions supported by the computer. Does it list 320x240 in there?


GregBUG(Posted 2006) [#3]
thanks xlsior!!!
yes the problem is that the 320x240 is not supported ! :(

i'll make my game for osx run in a window!

ciao
gianluca.


ImaginaryHuman(Posted 2006) [#4]
You'd be lucky to find a mac these days that supports anything below 640x480. Even my 10 year old ibook is 640x480 minimum.


JazzieB(Posted 2006) [#5]
320x240 is going to be a very small window, as a user is likely to be using the native resolution of their display, i.e. 1280x800 in the above case - that's roughly 1/16th of the total area of the display!

The best all-round solution would be to use 640x480 and double everything up.


Fry Crayola(Posted 2006) [#6]
If you go to the BlitzWiki, there's a function there called VirtualGraphics which you can use to run your game in any resolution, but maintaining the resolution you want.

It's not 100% perfect if you want pixel perfection, but at any rate it could be a useful starter.


ImaginaryHuman(Posted 2006) [#7]
You just need to set up a 640x480 screen with a projection matrix with 320 and 240 as some of the values so everything is automatically doubled.


GregBUG(Posted 2006) [#8]
thanks! guys!!!
my game is a old style remake (...) and is very low res...

i think to double all the gfx with the function from blitz wiki "VirtualGraphics"

Thanks.
Ciao.
Gianluca.


Fry Crayola(Posted 2006) [#9]
Just be sure to note that if you're reading any mouse input or setting up any viewports, you'll need to double up as well.


GregBUG(Posted 2006) [#10]
Ok. thanks Fry!