mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-10 04:50:03 -04:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
$NetBSD: patch-aa,v 1.5 2006/07/12 09:05:08 wiz Exp $
|
|
|
|
--- xengine.c.orig 2006-07-12 11:01:36.000000000 +0200
|
|
+++ xengine.c
|
|
@@ -35,7 +35,7 @@ XtTimerCallbackProc Cylcle();
|
|
Widget toplevel, base, rpm_info, engine;
|
|
GC gcPiston, gcShaft, gcCylinder, gcRoter, gcBack, gcDep, gcPre, gcEngine;
|
|
Pixmap enginePixmap;
|
|
-int width, height;
|
|
+Dimension width, height;
|
|
|
|
String colors[] = {"gray", "lightseagreen", "dimgrey", "forestgreen", "black", "red", "cyan", "firebrick"};
|
|
|
|
@@ -179,13 +179,10 @@ redraw_callback(w, event, params, nparam
|
|
|
|
Arg args[10];
|
|
|
|
- XtSetArg(args[0], XtNwidth, 0);
|
|
- XtSetArg(args[1], XtNheight, 0);
|
|
+ XtSetArg(args[0], XtNwidth, &width);
|
|
+ XtSetArg(args[1], XtNheight, &height);
|
|
XtGetValues(w, args, 2);
|
|
|
|
- width = args[0].value;
|
|
- height = args[1].value;
|
|
-
|
|
XFreePixmap(XtDisplay(engine), enginePixmap);
|
|
enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepth(XtDisplay(engine), 0));
|
|
|