mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Remove previous change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4385 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3006900f91
commit
8038d6628e
4 changed files with 1 additions and 24 deletions
|
@ -9,14 +9,6 @@ Wed Jun 9 8:35:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|||
* Source/NSApplication.m: Fix retain/release problems introduced by
|
||||
event system changes.
|
||||
|
||||
1999-06-08 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Headers/gnustep/gui/NSGraphicsContext.h (-convertBaseToScreen:):
|
||||
New method. (-convertScreenToBase): Likewise.
|
||||
* Source/NSGraphicsContext.m: Default implementation.
|
||||
* Source/NSWindow.m (-convertBaseToScreen:): Use them.
|
||||
(-convertScreenToBase): Likewise.
|
||||
|
||||
Sun Jun 6 20:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Headers/AppKit/NSEvent.h: Added new event types and masks and tidied.
|
||||
|
|
|
@ -129,10 +129,6 @@ NSGraphicsContext *GSCurrentContext();
|
|||
- (void) lockFocusView: (NSView*)aView inRect: (NSRect)rect;
|
||||
- (void) unlockFocusView: (NSView*)aView needsFlush: (BOOL)flush;
|
||||
|
||||
/* Convert to/from base coordinates of root window */
|
||||
- (NSPoint) convertBaseToScreen: (NSPoint)point;
|
||||
- (NSPoint) convertScreenToBase: (NSPoint)point;
|
||||
|
||||
@end
|
||||
#endif
|
||||
|
||||
|
|
|
@ -263,16 +263,6 @@ struct NSWindow_struct
|
|||
[focus_stack removeLastObject];
|
||||
}
|
||||
|
||||
- (NSPoint) convertBaseToScreen: (NSPoint)point
|
||||
{
|
||||
return point;
|
||||
}
|
||||
|
||||
- (NSPoint) convertScreenToBase: (NSPoint)point
|
||||
{
|
||||
return point;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSGraphicsContext (Private)
|
||||
|
|
|
@ -658,14 +658,13 @@ static Class responderClass;
|
|||
screenPoint.x = frame.origin.x + basePoint.x;
|
||||
screenPoint.y = frame.origin.y + basePoint.y;
|
||||
|
||||
return [GSCurrentContext() convertBaseToScreen: screenPoint];
|
||||
return screenPoint;
|
||||
}
|
||||
|
||||
- (NSPoint) convertScreenToBase: (NSPoint)screenPoint
|
||||
{
|
||||
NSPoint basePoint;
|
||||
|
||||
screenPoint = [GSCurrentContext() convertScreenToBase: screenPoint];
|
||||
basePoint.x = screenPoint.x - frame.origin.x;
|
||||
basePoint.y = screenPoint.y - frame.origin.y;
|
||||
|
||||
|
|
Loading…
Reference in a new issue