mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
* Source/NSImageCell.m (-drawInteriorWithFrame:inView:): Only
draw at 50% opacity if no bezel is set for cocoa compatibility. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34674 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d81adfe61d
commit
6e4da7d0e3
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-01-30 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSImageCell.m (-drawInteriorWithFrame:inView:): Only
|
||||
draw at 50% opacity if no bezel is set for cocoa compatibility.
|
||||
|
||||
2012-01-30 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Images/common_ToolbarClippedItemsMark.tiff: Revert to older
|
||||
|
|
|
@ -246,7 +246,13 @@ yBottomInRect(NSSize innerSize, NSRect outerRect, BOOL flipped)
|
|||
rect = [controlView centerScanRect: rect];
|
||||
}
|
||||
|
||||
CGFloat fraction = [self isEnabled] ? 1.0 : 0.5;
|
||||
CGFloat fraction = 1.0;
|
||||
|
||||
if (_frameStyle == NSImageFrameNone
|
||||
&& ![self isEnabled])
|
||||
{
|
||||
fraction = 0.5;
|
||||
}
|
||||
|
||||
// draw!
|
||||
[_cell_image drawInRect: rect
|
||||
|
|
Loading…
Reference in a new issue