wxMac 2.8.4: wxClientDC draws to screen even when (parent) window is hidden

Stefan Csomor csomor at advancedconcepts.ch
Fri May 25 22:18:27 PDT 2007


I haven't exposed it yet (And under OSX antialised drawing is expected), but if you want to turn it of

you'd have to do something like

// to get native headers
#include "wx/mac/private.h"

...

CGContextSetShouldAlias( (CGContextRef) dc.GetGraphicsContext()->GetNativeContext(), false );

and later

set it to true again

HTH

STefan

> -----Original Message-----
> From: news [mailto:news at sea.gmane.org] On Behalf Of Joost
> Sent: Samstag, 26. Mai 2007 04:22
> To: wx-users at lists.wxwindows.org
> Subject: Re: wxMac 2.8.4: wxClientDC draws to screen even when
> (parent) window is hidden
>
> Vadim Zeitlin wrote:
> > J> Drawing is anti aliased, which is nice, but is it also possible
> to
> > J> disable it?
> >
> >  I think it is but I don't know how, try searching in the archives
> (e.g.
> > http://news.gmane.org/gmane.comp.lib.wxwidgets.general) as I'm
> almost sure
> > it was mentioned several times in the past but unfortunately I
> don't
> > remember the answers.
>
> I searched for it before I asked, and now again, but really couldn't
> find an answer. Any hints appreciated!
>
> Thanks
> Joost
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org





More information about the wx-users mailing list