| Home
| Previous
| Next
| Up

GA_setDefaultRefresh

Set the default refresh rate for a specific resolution and color depth

Declaration

ibool NAPI GA_setDefaultRefresh(
GA_devCtx *dc,
N_int32 xRes,
N_int32 yRes,
N_int32 bits,
N_int32 refreshRate,
ibool saveToDisk)

Prototype In

snap/graphics.h

Parameters

dc | Device context to save CRTC timings information for
xRes | X resolution for the mode to change
yRes | Y resolution for the mode to change
bits | Color depth of the mode to change (0 for text modes)
refreshRate | New refresh rate to make the default
saveToDisk | True to save the changes permanently to disk

Return Value

True on success, false on error.

Description

This function sets the default refresh rate for a specific resolution and color depth to the passed in refresh rate for the mode.

Note: Internally the CRTC timings are maintained independantly of specific colors depths, so changing the default refresh rate for 640x480x8 also changes it for all other 640x480 modes. The main reason we have the 'bits' parameter is so we can tell when we are dealing with text modes which are handled slightly differently.

See Also

GA_saveCRTCTimings, GA_restoreCRTCTimings

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