bug-gnustep
[Top][All Lists]
Advanced

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

Re: NSCell -_nonAutoreleasedTypingAttributes minor change.


From: Fred Kiefer
Subject: Re: NSCell -_nonAutoreleasedTypingAttributes minor change.
Date: Mon, 12 Jan 2004 22:46:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821

Michael Hanni wrote:
Seemingly the baseline for string drawing in controls is one pixel too low. Maybe I'm seeing things, but this small patch for NSCell makes these strings center a little better. Some extra research might be necessary.


One possible reason for the different appearance of GNUstep may be that we tread the cellFrame wrong in drawWithFrame:inView:. This value is handled on to drawInteriorWithFrame:inView: untouched no matter sort of border is drawn. This may be different in OpenStep and/or Cocoa. At least it is different in myStep where the cellFrame is reduced to exclude the border. This looks logical to me, but again this is something that must be tested on a Cocoa/OpenStep system. Any volunteer for this? In most cases we try to adjust the border in the drawInteriorWithFrame:inView: method, but some of the code may be wrong.





reply via email to

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