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.




_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to