Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!ox.com!tbomb.ice.com!time From: time@tbomb.ice.com (Tim Endres) Newsgroups: comp.sys.mac.programmer Subject: PaintRect() broke on MacPlus? Message-ID: Date: 7 Sep 90 14:46:33 GMT Reply-To: time@tbomb.ice.com Organization: ICE Engineering, Inc. Lines: 20 X-Mailer: uMail - Mac Release: 0.1.4 I am using MPW to develop an application. In that application, I am using controls (custom built) that use PICT's. For some reason, which I can not understand, the following code perfectly "dims" the controls on any machine except a MacPlus. Anyone possibly know why? LoadResource((Handle)picture); DrawPicture(picture, &pict_list->bounds); if (pict_list->active == 0) { /* I.e. it is dim. */ PenMode(srcBic); PenPat(qd.gray); PaintRect(&pict_list->bounds); PenNormal(); } In fact, instead of the "dim" affect caused by the gray pattern putting holes in the picture, is appears that a black pattern is actually used, since the picture simply disappears (white-ed out). tim. ------------------------------------------------------------- Tim Endres | time@ice.com ICE Engineering | uunet!ice.com!time 8840 Main Street | Whitmore Lake MI. 48189 | --- Disclaimed.