gnustep-dev
[Top][All Lists]
Advanced

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

Re: drawing artifacts...


From: Fred Kiefer
Subject: Re: drawing artifacts...
Date: Fri, 27 Apr 2007 16:18:36 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20060911)

I just submitted a patch that is very similar to your original one. This
resolves the issue for the xlib and the art backend. Strange enough the
same problem still remains for the cairo backend.
As far as I can tell the reason behind this is that NSTextView tries to
undraw the cursor by drawing in the background colour. For cairo this
only results in the cursor becoming slightly lighter. For now the users
of the cairo backend (that is more or less just me) will have to live
with that limitation.

Cheers,
Fred

Matt Rice wrote:
> yeah can still reproduce,
> 
> attached is a png from svn trunk,
> just use the left and right arrow keys, while editing
> an action/outline in the inspector in gorm
> 
> though any editable TextFieldCell in a TableView i've
> seen has the same effect
> 
> no longer on the list with this account btw.
> 
> 
> --- Fred Kiefer <address@hidden> wrote:
> 
>> Hi Matt,
>>
>> I am currently trying to catch up with old mails in
>> this mailing list
>> that went unanswered. Could you please retry this
>> problem and see, if
>> the bug is still visible without your patch? I agree
>> that the patch
>> looks like it is addressing the problem in the wrong
>> way, but when I am
>> able to reproduce this is issue I would start
>> looking for a better solution.
>>
>> Cheers,
>> Fred
>>
>>
>> Matt Rice wrote:
>>> sorry this email has a ton of attachments...
>>>
>>> while i'm fairly sure the attached patch isn't
>> correct
>>> it does get rid of any remaining artifacts caused
>> by
>>> cursor movement in NSTableView 
>>>
>>> but i have yet to see anywhere the code i modify
>>> actually does anything, since by default table
>> view
>>> NSTextFieldCells don't draw their backround
>>>
>>> (in between foo3 and 8 nothing seemed to happen...
>> so
>>> i didn't attach those)
>>>
>>> you can see the progression of these artifacts,
>>> and the before/after of my most recent patch
>> committed
>>> to back in the new/old.png's...
>>>
>>>
> http://svn.gna.org/viewcvs/gnustep/libs/back/trunk/Source/x11/XGServerWindow.m?rev=24287&r1=24246&r2=24287
>>> this was using back-art...
>>> anyhow it'd be great to get rid of these artifacts
>>> completely, but it seems better than it was...
>>>
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Tired of spam?  Yahoo! Mail has the best spam
>> protection around 
>>> http://mail.yahoo.com 
>>>
>>>
>>>
> ------------------------------------------------------------------------
>>>
>>>
> ------------------------------------------------------------------------
>>>
>>>
> ------------------------------------------------------------------------
>>>
>>>
> ------------------------------------------------------------------------
>>>
>>>
> ------------------------------------------------------------------------
>>>
>>>
> ------------------------------------------------------------------------
>>>
>>>
> ------------------------------------------------------------------------
>>> Index: Source/NSTableView.m
>>>
> ===================================================================
>>> --- Source/NSTableView.m    (revision 24288)
>>> +++ Source/NSTableView.m    (working copy)
>>> @@ -3271,13 +3271,13 @@
>>>    // We really want the correct background color!
>>>    if ([_editedCell respondsToSelector:
>> @selector(setBackgroundColor:)])
>>>      {
>>> -      [(NSTextFieldCell *)_editedCell
>> setBackgroundColor: _backgroundColor];
>>> +      [(NSTextFieldCell *)_editedCell
>> setBackgroundColor: [NSColor textBackgroundColor]];
>>>      }
>>>    else
>>>      {
>>> -      [t setBackgroundColor: _backgroundColor];
>>> +      [t setBackgroundColor: [NSColor
>> textBackgroundColor]];
>>>      }
>>> -  
>>> +   
>>>    // But of course the delegate can mess it up if
>> it wants
>>>    [self _willDisplayCell: _editedCell
>>>     forTableColumn: tb
>>> @@ -3299,7 +3299,8 @@
>>>      }
>>>  
>>>    _textObject = [_editedCell
>> setUpFieldEditorAttributes: t];
>>> -
>>> +  [_textObject setDrawsBackground:YES];
>>> +  
>>>    drawingRect = [self frameOfCellAtColumn:
>> columnIndex  row: rowIndex];
>>>    if (flag)
>>>      {
>>>
>>>
>>>
> ------------------------------------------------------------------------
>>> _______________________________________________
>>> Gnustep-dev mailing list
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/gnustep-dev
>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
> ------------------------------------------------------------------------
> 





reply via email to

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