Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Expanding Growth in Memory and XOR Mode in OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expanding Growth in Memory and XOR Mode in OS X



> From: Andrew Hooke <email@hidden>
> Reply-To: Andrew Hooke <email@hidden>
> Date: Tue, 01 May 2001 09:32:50 +1000
> To: Java-Dev <email@hidden>, Ian Cheyne <email@hidden>,
> email@hidden
> Subject: Re:Expanding Growth in Memory and XOR Mode in OS X
>
>> I am now trying to get it to work under OS X but I am having problems >with
>> setting XOR Mode on a graphics object. I realise that there are >issues
>> regarding XOR most of which I can live with however there is one >that is a
>> bit strange. It results in my application quickly and forever >increasing in
>> size using up all memory on the machine even preventing >user interaction. I
>> am running from the command line and Ctrl-C does >work.
>
> I have run into this exact same bug last night. What I was doing was
> drawing a rect onto a window to match the area that a user selects by dragging
> their mouse about the screen. I would use XOR so that if the
> mouse moves I could undo the previously drawn rect and replace it with a new
> one.
>
> I've tracked it down with a different example to you. For me, all problems are
> with the setXORMode mode. If I don't call this then my rectangles appear
> on screen - only the older versions aren't erased and the screen quickly
> fills up with rectangles.

And that's due to antialiasing issues, I'm afraid, XOR just isn't anymore
what it used to be for tracking feedback :-(

The bad news is there is no known (to me) XOR-capable workaround - even if
you set antialias off it'll still leave turds around. The good news is it's
being addressed.

-Vladimir




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.