mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-01 04:50:42 +00:00
Added header defs to dga_check.h
This commit is contained in:
parent
cfb408b863
commit
e5baa7240c
2 changed files with 11 additions and 3 deletions
|
@ -27,6 +27,9 @@
|
||||||
59 Temple Place - Suite 330
|
59 Temple Place - Suite 330
|
||||||
Boston, MA 02111-1307, USA.
|
Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
#ifdef HAS_DGA
|
#ifdef HAS_DGA
|
||||||
#include "dga_check.h"
|
#include "dga_check.h"
|
||||||
|
|
||||||
|
@ -41,8 +44,9 @@
|
||||||
int
|
int
|
||||||
VID_CheckDGA ( Display *dpy )
|
VID_CheckDGA ( Display *dpy )
|
||||||
{
|
{
|
||||||
int event_base, error_base = 0;
|
int *event_base, *error_base;
|
||||||
|
|
||||||
|
event_base = error_base = NULL;
|
||||||
XF86DGAQueryExtension ( dpy, event_base, error_base );
|
XF86DGAQueryExtension ( dpy, event_base, error_base );
|
||||||
if ( event_base )
|
if ( event_base )
|
||||||
return true;
|
return true;
|
||||||
|
@ -55,10 +59,11 @@ VID_CheckDGA ( Display *dpy )
|
||||||
Check for the presence of the XFree86-VMode X server extension
|
Check for the presence of the XFree86-VMode X server extension
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
VID_CheckVMode ( Display *dpy );
|
VID_CheckVMode ( Display *dpy )
|
||||||
{
|
{
|
||||||
int event_base, error_base = 0;
|
int *event_base, *error_base;
|
||||||
|
|
||||||
|
event_base = error_base = NULL;
|
||||||
XF86VidModeQueryExtension ( dpy, event_base, error_base );
|
XF86VidModeQueryExtension ( dpy, event_base, error_base );
|
||||||
if ( event_base )
|
if ( event_base )
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -32,6 +32,9 @@
|
||||||
#define DGA_CHECK_H
|
#define DGA_CHECK_H
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
#include <quakedef.h>
|
||||||
|
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
|
||||||
#ifdef HAS_DGA
|
#ifdef HAS_DGA
|
||||||
#include <X11/extensions/xf86dga.h>
|
#include <X11/extensions/xf86dga.h>
|
||||||
|
|
Loading…
Reference in a new issue