| Home
| Previous
| Next
| Up

MGL_modeResolution

Returns the resolution and pixel depth of a specific graphics mode.

Declaration

ibool MGLAPI MGL_modeResolution(
int mode,
int *xRes,
int *yRes,
int *bitsPerPixel)

Prototype In

mgraph.h

Parameters

mode | graphics mode number to get resolution for
xRes | Place to store the x resolution
yRes | Place to store the y resolution
bitsPerPixel | Place to store the pixel depth

Return Value

True on success, false for an invalid graphics mode number.

Description

This function returns the resolution and color depth of the specified MGL graphics mode. This function is useful for displaying the list of available modes to the user, or to search for specific graphics modes for use by an application program depending on the desired resolution or color depth.

Note: If the hardware has not been detected when this call is made, the MGL will automatically detect the installed hardware the first time this function is called.

See Also

MGL_init, MGL_availablePages, MGL_findMode, MGL_addCustomMode, MGL_createDisplayDC

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com