request_refresh_rate man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

request_refresh_rate(3)		Allegro manual	       request_refresh_rate(3)

NAME
       request_refresh_rate  - Requests a specific refresh rate during graphic
       mode switch. Allegro game programming library.

SYNOPSIS
       #include <allegro.h>

       void request_refresh_rate(int rate);

DESCRIPTION
       Requests that the next call to set_gfx_mode() try to use the  specified
       refresh	rate, if possible. Not all drivers are able to control this at
       all, and even when they can, not all rates  will	 be  possible  on  all
       hardware,  so  the  actual settings may differ from what you requested.
       After you call set_gfx_mode(), you can use get_refresh_rate()  to  find
       out  what was actually selected. At the moment only the DOS VESA 3.0, X
       DGA 2.0 and some Windows DirectX drivers	 support  this	function.  The
       speed  is  specified in Hz, eg. 60, 70. To return to the normal default
       selection, pass a rate value of zero. Example:

	  request_refresh_rate(60);
	  if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) != 0)
	     abort_on_error("Couldn't set graphic mode!");
	  if (get_refresh_rate() != 60)
	     abort_on_error("Couldn't set refresh rate to 60Hz!");

SEE ALSO
       set_gfx_mode(3), get_refresh_rate(3)

Allegro				 version 4.4.2	       request_refresh_rate(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net