[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pixpat problems



PixPats have to be gotten with GetPixPat not GetResource. See IM V.

Also note that every call to GetPixPat makes a brand new PixPat. So you
don't want to be calling it a bunch of times to get the same PixPat.

PixPat's have many pitfalls. I discovered a lot of QuickDraw bugs in
the process of writing the with-back-pix-pat macro which is in
oodles-of-utils. If you are planning to save the current state -
install your pixpat - and then restore the state - you should
definitely consider using (or at least reading the source to) my
macro.  It doesn't rely on other oou code - so it can easily be spliced
out.

-ME