mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:21:04 +00:00
Updated for change in NSView ivars; fixed drawing of app icons
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5718 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b119682f75
commit
ba4e5a1834
1 changed files with 6 additions and 6 deletions
|
@ -156,8 +156,8 @@ static NSCell* tileCell = nil;
|
|||
|
||||
- (void) drawRect: (NSRect)rect
|
||||
{
|
||||
[tileCell drawWithFrame: rect inView: self];
|
||||
[dragCell drawWithFrame: rect inView: self];
|
||||
[tileCell drawWithFrame: NSMakeRect(0,0,64,64) inView: self];
|
||||
[dragCell drawWithFrame: NSMakeRect(8,8,48,48) inView: self];
|
||||
}
|
||||
|
||||
- (void) mouseDown: (NSEvent*)theEvent
|
||||
|
@ -194,14 +194,14 @@ static NSCell* tileCell = nil;
|
|||
done = YES;
|
||||
break;
|
||||
case NSPeriodic:
|
||||
location = [window mouseLocationOutsideOfEventStream];
|
||||
location = [_window mouseLocationOutsideOfEventStream];
|
||||
if (NSEqualPoints(location, lastLocation) == NO)
|
||||
{
|
||||
NSPoint origin = [window frame].origin;
|
||||
NSPoint origin = [_window frame].origin;
|
||||
|
||||
origin.x += (location.x - lastLocation.x);
|
||||
origin.y += (location.y - lastLocation.y);
|
||||
[window setFrameOrigin: origin];
|
||||
[_window setFrameOrigin: origin];
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -219,7 +219,7 @@ static NSCell* tileCell = nil;
|
|||
[tileCell drawWithFrame: NSMakeRect(0,0,64,64) inView: self];
|
||||
[dragCell setImage: anImage];
|
||||
[dragCell drawWithFrame: NSMakeRect(8,8,48,48) inView: self];
|
||||
[window flushWindow];
|
||||
[_window flushWindow];
|
||||
[self unlockFocus];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue