diff options
Diffstat (limited to 'games/bzflag/patches/patch-ad')
-rw-r--r-- | games/bzflag/patches/patch-ad | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/games/bzflag/patches/patch-ad b/games/bzflag/patches/patch-ad new file mode 100644 index 00000000000..401c58a4300 --- /dev/null +++ b/games/bzflag/patches/patch-ad @@ -0,0 +1,57 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/09/24 12:49:12 blymn Exp $ + +--- src/platform/NetBSDDisplay.h.orig Sun Sep 22 22:29:02 2002 ++++ src/platform/NetBSDDisplay.h +@@ -0,0 +1,52 @@ ++/* bzflag ++ * Copyright (c) 1993 - 2002 Tim Riker ++ * ++ * This package is free software; you can redistribute it and/or ++ * modify it under the terms of the license found in the file ++ * named LICENSE that should have accompanied this file. ++ * ++ * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ++ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. ++ */ ++ ++/* NetBSDDisplay: ++ * An X display with XFree86 vidmode extension ++ */ ++ ++#ifndef BZF_NETBSDDISPLAY_H ++#define BZF_NETBSDDISPLAY_H ++ ++#include "XDisplay.h" ++#if defined(XF86VIDMODE_EXT) ++#define USE_XF86VIDMODE_EXT ++#define private c_private ++#include <X11/extensions/xf86vmode.h> ++#undef private ++#endif ++ ++class NetBSDDisplayMode : public XDisplayMode { ++ public: ++#if defined(USE_XF86VIDMODE_EXT) ++ NetBSDDisplayMode(); ++ ~NetBSDDisplayMode(); ++ ++ ResInfo** init(XDisplay* owner, int& num, int& current); ++ boolean set(int); ++ boolean setDefault(int); ++ ++ private: ++ boolean doSet(int, boolean position); ++ ++ private: ++ XDisplay* display; ++ int numResolutions; ++ int lastResolution; ++ XF86VidModeModeInfo** resolutions; ++ int origNumResolutions; ++ XF86VidModeModeInfo** origResolutions; ++#endif ++}; ++ ++#endif // BZF_NETBSDDISPLAY_H ++// ex: shiftwidth=2 tabstop=8 |