Revision [284]

This is an old revision of ioSetDisplayMode made by JohnMcIntosh on 2008-10-21 01:52:59.

 

sqInt ioSetDisplayMode( sqInt width, sqInt height, sqInt depth, sqInt fullscreenFlag)


Parms:
width pixels wide
height pixels high
dept depth of pixel 1,2,4,8,16,32

return: 1 or 0, to return true or false object

From: Interpreter
Why:
Set the pixel depth, and extent for the display

Responsibility:
Sometimes a game developer wants to set a particular screen size (640x480) and color depth 8 bit.
This optional api attempts to ask the operating system to modify the display mode.

MacIntosh
os-9/OSXCarbon
If headless or browser drawing context isn't ok then fail
Get the dominate screen for the squeak window, then attempt to set the display mode following Apples rules for CGDisplayBestModeForParameters:
This function tries to find an optimal display mode for the specified display. The function first tries to find a mode with the specified pixel depth and dimensions equal to or greater than the specified width and height. If no depth match is found, it tries to find a mode with greater depth and the same or greater dimensions. If a suitable display mode is not found, this function simply returns the current display mode.

Cocoa:
TBD

iPhone
not supported, return 0 (false)

Unix

Windows

BUGS
There is debate about what this does?

On macintosh if QDGetCGDirectDisplayID does not exist the function causes a recursive call

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki