Files
pkgsrc-ng/games/battleball/patches/patch-aa
2013-09-26 17:14:40 +02:00

37 lines
951 B
Plaintext

$NetBSD: patch-aa,v 1.5 2011/11/25 21:50:31 joerg Exp $
--- lib3d/gfxtarget.h.orig 1999-09-03 02:25:19.000000000 +0000
+++ lib3d/gfxtarget.h
@@ -7,7 +7,7 @@
#define _GFXTARGET_H
#include <stdlib.h>
#include <string.h>
-#include <iostream.h>
+#include <iostream>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -19,6 +19,7 @@
#include "general.h"
#include "pt2d.h"
+using namespace std;
struct gfxTarget {
Display *disp; // X Display
@@ -72,7 +73,14 @@ struct gfxTarget {
XFillRectangle(disp,win,gc,(int)p.x,(int)p.y,(int)sz.x,(int)sz.y);
}
void ResizeWindow(const pt2d& sz) {
+ #if 0
+ /* This produces wierd artifacts on my systems--creeping windows,
+ and "oscillating" windows--NetBSD-1.4.1 and NetBSD-1.4P with
+ include X, also with PC Xserver.
+ --F. Bruckman <fb@enteract.com>,<fredb@netbsd.org>
+ */
XResizeWindow(disp,win,(int)sz.x,(int)sz.y);
+ #endif
HandleResize();
}