mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:00:37 +00:00
Some small changes to support backing-store.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2244 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c50f0dae54
commit
e57412cbff
8 changed files with 27 additions and 17 deletions
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include <Foundation/NSValue.h>
|
||||
#include <AppKit/NSApplication.h>
|
||||
#include <AppKit/NSWindow.h>
|
||||
#include <AppKit/NSImage.h>
|
||||
#include <AppKit/NSFont.h>
|
||||
#include <AppKit/NSView.h>
|
||||
|
@ -633,7 +634,10 @@
|
|||
|
||||
// If point is in cellFrame then highlight the cell
|
||||
if ([controlView mouse: point inRect: cellFrame])
|
||||
{
|
||||
[self highlight:YES withFrame:cellFrame inView:controlView];
|
||||
[[controlView window] flushWindow];
|
||||
}
|
||||
else
|
||||
return NO;
|
||||
|
||||
|
@ -646,9 +650,6 @@
|
|||
last_point = point;
|
||||
e = [theApp nextEventMatchingMask:event_mask untilDate:nil
|
||||
inMode:nil dequeue:YES];
|
||||
// What is going on here? After the following statement location
|
||||
// should be in the window coordinates, but is in the receiving
|
||||
// view's coordinate.
|
||||
location = [e locationInWindow];
|
||||
point = [controlView convertPoint: location fromView: nil];
|
||||
NSDebugLog(@"NSCell location %f %f\n", location.x, location.y);
|
||||
|
@ -664,6 +665,7 @@
|
|||
[self highlight: NO withFrame: cellFrame
|
||||
inView: controlView];
|
||||
[self drawWithFrame: cellFrame inView: controlView];
|
||||
[[controlView window] flushWindow];
|
||||
}
|
||||
|
||||
// Do we now return or keep tracking
|
||||
|
@ -684,6 +686,7 @@
|
|||
[self highlight: YES withFrame: cellFrame
|
||||
inView: controlView];
|
||||
//[self drawWithFrame: cellFrame inView: controlView];
|
||||
[[controlView window] flushWindow];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue