[Top][All Lists]

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

Re: Drawing context

From: Eric Wasylishen
Subject: Re: Drawing context
Date: Wed, 26 Sep 2012 13:11:10 -0600

Hey Riccardo,
I committed an implementation of -isDrawingToScreen for cairo and tested that 
graphos no longer prints the selection handles to PDFs. :-)

On 2012-09-26, at 6:29 AM, Riccardo Mottola <address@hidden> wrote:

> Hi,
>> Greg reported me bug about Graphos and I think it is a GS bug, since it 
>> works on Mac.
>> During printing, objects should not drawn their editors (= shape or path 
>> handles). To do that, I use:
>>    if ([[NSGraphicsContext currentContext] isDrawingToScreen])
>>        [editor draw];
>> thus I suppose that on GS (cairo backend at least) it returns true even 
>> while printing.
>> Testing is simple: Launch graphos, select some shape, look at the handles, 
>> print (preview). The handles should not print. They do on GS, they don't on 
>> mac.
> The bug appears to be backend specific: it works on xlib but not on cairo.
> Riccardo
> _______________________________________________
> Discuss-gnustep mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]