Updated for change in NSView ivars

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5719 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2000-01-10 02:04:25 +00:00
parent 0a6a692734
commit 475b802dee
16 changed files with 169 additions and 164 deletions

View file

@ -153,18 +153,18 @@
// Draw the Bezel
if (isBezeled)
NSDrawGrayBezel(bounds,rect);
NSDrawGrayBezel(_bounds,rect);
// Calc the inside rect to be drawn
if (isBezeled)
{
r = NSMakeRect(NSMinX(bounds) + 2.0,
NSMinY(bounds) + 2.0,
NSWidth(bounds) - 4.0,
NSHeight(bounds) - 4.0);
r = NSMakeRect(NSMinX(_bounds) + 2.0,
NSMinY(_bounds) + 2.0,
NSWidth(_bounds) - 4.0,
NSHeight(_bounds) - 4.0);
}
else
r = bounds;
r = _bounds;
if (isIndeterminate) // Draw indeterminate
{
@ -261,10 +261,10 @@
- (void)_update
{
if (window != nil)
if ([window isVisible])
if (_window != nil)
if ([_window isVisible])
{
[window display];
[_window display];
[GSCurrentContext() flush];
}
}