$NetBSD: patch-aa,v 1.4 2005/08/23 10:26:17 hira Exp $ --- xengine.c.orig 2005-08-23 12:01:39.000000000 +0900 +++ xengine.c 2005-08-23 12:10:23.000000000 +0900 @@ -35,7 +35,7 @@ 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"}; @@ -180,13 +180,10 @@ 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, DefaultDepthOfScreen(XtScreen(engine)));