Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: problem with PenPat() calls in THINK C Message-ID: <53110@apple.Apple.COM> Date: 20 May 91 15:48:09 GMT References: <1991May20.092307.29916@beaver.cs.washington.edu> Distribution: na Organization: Apple Computer Inc., Cupertino, CA Lines: 24 chou@cs.washington.edu (Pai Chou) writes: >I have problems with PenPat() in THINK C's console window. >If I don't call PenPat() at all, my Line() and LineTo() calls >will draw lines correctly in the console window. > >But if I call PenPat(black) or any pattern at all, >then the same Line() or LineTo() will not draw anything. >I also tried PenPat(&black) but it doesn't make a difference. >My program does not crash in either case. > >Is there something special I should do about calling PenPat() >in the console window? I am using THINK C version 4.5, >but my ANSI library is from 4.0 with the scanf patch. >Thanks in advance. For C you should be using PenPat(&qd.black). The Inside Mac documentation was written primarily for Pascal which automatically handles the "&qd." part... steve -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Steve Christensen Never hit a man with glasses. stevec@apple.com Hit him with a baseball bat.