mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
* Source/NSView.m (-scrollRect:by:): reversed the coordinates
of destPoint (substract instead of add), to match OSX behaviour. * Source/NSClipView.m (-setBoundsOrigin): reversed the coordinates of the call to scrollRect:by:, to match OSX behaviour. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25458 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5840493d5
commit
852a7aff1d
3 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2007-09-05 Nicolas Roard <nicolas@roard.com>
|
||||
|
||||
* Source/NSView.m (-scrollRect:by:): reversed the coordinates
|
||||
of destPoint (substract instead of add), to match OSX behaviour.
|
||||
* Source/NSClipView.m (-setBoundsOrigin): reversed the coordinates
|
||||
of the call to scrollRect:by:, to match OSX behaviour.
|
||||
|
||||
2007-09-06 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSWindow.m (-sendEvent:, -selectKeyViewFollowingView:,
|
||||
|
|
|
@ -290,7 +290,7 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
|
|||
NSRect redrawRect;
|
||||
|
||||
/* Copy the intersection to the new position */
|
||||
[self scrollRect: intersection by: NSMakeSize(dx, dy)];
|
||||
[self scrollRect: intersection by: NSMakeSize(-dx, -dy)];
|
||||
|
||||
/* Change coordinate system to the new one */
|
||||
[super setBoundsOrigin: newBounds.origin];
|
||||
|
|
|
@ -2825,8 +2825,8 @@ in the main thread.
|
|||
|
||||
aRect = NSIntersectionRect(aRect, _bounds); // Don't copy stuff outside.
|
||||
destPoint = aRect.origin;
|
||||
destPoint.x -= delta.width;
|
||||
destPoint.y -= delta.height;
|
||||
destPoint.x += delta.width;
|
||||
destPoint.y += delta.height;
|
||||
|
||||
[self lockFocus];
|
||||
NSCopyBits(0, aRect, destPoint);
|
||||
|
|
Loading…
Reference in a new issue