summaryrefslogtreecommitdiff
path: root/benchmarks/xengine/patches
diff options
context:
space:
mode:
authorsakamoto <sakamoto@pkgsrc.org>2000-04-03 15:50:53 +0000
committersakamoto <sakamoto@pkgsrc.org>2000-04-03 15:50:53 +0000
commitc8e9c759ef8dd48a93833e191390a07d8820ae42 (patch)
tree9a8c6225f40514bbb70c223b83582ee881092590 /benchmarks/xengine/patches
parentdf468c58d1cec2ac2c2e55569bc115647205406e (diff)
downloadpkgsrc-c8e9c759ef8dd48a93833e191390a07d8820ae42.tar.gz
Import FreeBSD's "xengine" port:
Reciprocating engine for X
Diffstat (limited to 'benchmarks/xengine/patches')
-rw-r--r--benchmarks/xengine/patches/patch-aa26
1 files changed, 26 insertions, 0 deletions
diff --git a/benchmarks/xengine/patches/patch-aa b/benchmarks/xengine/patches/patch-aa
new file mode 100644
index 00000000000..78fbbdfb03d
--- /dev/null
+++ b/benchmarks/xengine/patches/patch-aa
@@ -0,0 +1,26 @@
+*** xengine.c~ Wed Oct 3 10:58:17 1990
+--- xengine.c Sun Dec 8 22:17:43 1996
+***************
+*** 180,191 ****
+
+ Arg args[10];
+
+! XtSetArg(args[0], XtNwidth, 0);
+! XtSetArg(args[1], XtNheight, 0);
+ XtGetValues(w, args, 2);
+-
+- width = args[0].value;
+- height = args[1].value;
+
+ XFreePixmap(XtDisplay(engine), enginePixmap);
+ enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine)));
+--- 180,188 ----
+
+ Arg args[10];
+
+! XtSetArg(args[0], XtNwidth, &width);
+! XtSetArg(args[1], XtNheight, &height);
+ XtGetValues(w, args, 2);
+
+ XFreePixmap(XtDisplay(engine), enginePixmap);
+ enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine)));