GA_addRefresh

Add a custom refresh rate for a mode to the CRTC database.

Declaration

ibool NAPI GA_addRefresh(
GA_devCtx *dc,
N_int32 xRes,
N_int32 yRes,
N_int32 refresh,
N_int32 saveToDisk)

Prototype In

snap/graphics.h

Parameters

dc | Device context for driver to add mode to
xRes | X resolution of the mode to add
yRes | Y resolution of the mode to add
refresh | New refresh rate to add
saveToDisk | True if the mode profile should be saved to disk

Return Value

True on success, or false if the refresh rate could not be added.

Description

This function is used to add a custom refresh rate to the CRTC database for a device. By default a standard databse of known display modes is available, but this function allows the user to create custom refresh rates and add those to the SNAP drivers.

Unless you pass a value of true to the saveToDisk parameter, the changes will only affect the currently loaded copy of SNAP and will not affect new versions of SNAP that are loaded from disk. To make the change permanent, you need to set this parameter to true.

See Also

GA_addMode, GA_delMode

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