mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Minor menu drawing fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22731 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aa684478fd
commit
8c5e6703cd
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-03-31 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSMenuView.m: ([-rectOfItemAtIndex:]) fixup origin of
|
||||
rectangle to avoid overwriting dark line at left of menu.
|
||||
|
||||
2006-03-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSMemoryPanel.m: Extend to allow snapshots of the memory
|
||||
|
|
|
@ -901,14 +901,16 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
{
|
||||
NSRect theRect;
|
||||
|
||||
/* Fiddle with the origin so that the item rect is shifted 1 pixel over
|
||||
* so we do not draw on the heavy line at origin.x = 0.
|
||||
*/
|
||||
theRect.origin.y
|
||||
= _cellSize.height * ([_itemCells count] - index - 1);
|
||||
theRect.origin.x = _leftBorderOffset;
|
||||
theRect.size = _cellSize;
|
||||
|
||||
/* Fiddle with the origin so that the item rect is shifted 1 pixel over
|
||||
* so we do not draw on the heavy line at origin.x = 0.
|
||||
*/
|
||||
theRect.origin.x++;
|
||||
|
||||
/* NOTE: This returns the correct NSRect for drawing cells, but nothing
|
||||
* else (unless we are a popup). This rect will have to be modified for
|
||||
* event calculation, etc..
|
||||
|
|
Loading…
Reference in a new issue