mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Fixed isOpaque to reflect the way we draw buttons.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5213 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e4c31a3a38
commit
54765435d2
1 changed files with 6 additions and 2 deletions
|
@ -241,7 +241,11 @@
|
|||
|
||||
- (BOOL) isOpaque
|
||||
{
|
||||
return !transparent && [self isBordered];
|
||||
// MacOS-X says we should return !transparent && [self isBordered],
|
||||
// but that's wrong in our case, since if there is no border,
|
||||
// we draw the interior of the cell to fill completely the bounds.
|
||||
// They are likely to draw differently.
|
||||
return !transparent;
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -386,7 +390,7 @@
|
|||
{
|
||||
NSDrawButton(cellFrame, NSZeroRect);
|
||||
}
|
||||
[controlView unlockFocus];
|
||||
[controlView unlockFocus];
|
||||
}
|
||||
|
||||
[self drawInteriorWithFrame: cellFrame inView: controlView];
|
||||
|
|
Loading…
Reference in a new issue