request_refresh_rate(3alleg4) Allegro manual request_refresh_rate(3alleg4)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(3alleg4), get_refresh_rate(3alleg4)Allegro version 4.4.2 request_refresh_rate(3alleg4)
Check Out this Related Man Page
request_refresh_rate(3alleg4) Allegro manual request_refresh_rate(3alleg4)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(3alleg4), get_refresh_rate(3alleg4)Allegro version 4.4.2 request_refresh_rate(3alleg4)
Hello.
I'm running OpenBSD3.5 with GNOME2.4.
The problem is that the monitors flickers.
I'd like to know how to increase the vertical refresh rate.
thanks in advance. (0 Replies)
Hi,
I am using fc3, and I would like to know how to increase monitor refresh rate.
I have tried "Applications" > "Preferences" > "Screen Resolution" but I can't seem to increase greater than 85Hz.
I have tried to edit /etc/X11/xorg,conf
but not sure how to...
So here is my file.
How... (6 Replies)
Hi All,
Great forums, a wealth of knowledge. We have just replaced our server room screen with a nice 15" LCD. We run CDE as the gui at the console. I think the refresh rate is too high for the LCD as I get an out of range error message on the screen.
Can anyone point me in the right... (1 Reply)
Hi People
I am getting this error Couldn't canonicalise: Permission denied. Anyone knows what does this error mean ? It all started when my team members were testing Sftp functions on some directories and they were hitting directory no found errors within their scripts.
So when we enquired... (8 Replies)
Discussion started by: wilsontan
8 Replies
5. Forum Support Area for Unregistered Users & Account Problems
Hi.
I wrote a small programm which shows me display's refresh rate
#include "stdafx.h"
#include "windows.h"
#include "iostream"
using namespace std;
int _tmain(int cout)
{
HDC hDCScreen = GetDC(NULL);
int RefreshFrequency = GetDeviceCaps(hDCScreen, VREFRESH);
ReleaseDC(NULL, hDCScreen);... (1 Reply)
Hi All,
I was told to perform analysis for IP change during a hardware refresh?
Does the IP change when a hardware refresh is performed?
if Yes, why? (5 Replies)