summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-06-09 13:00:46 +0300
committerTor Lillqvist <tml@collabora.com>2015-06-10 11:47:11 +0300
commit7bfe288dabae31ea36ce053359ffef215b0e480b (patch)
tree902ce507e7588e471fa6fdfa8e0430888b540d38 /vcl
parentWaE: null passed to a callee that requires a non-null argument (diff)
downloadcore-7bfe288dabae31ea36ce053359ffef215b0e480b.tar.gz
core-7bfe288dabae31ea36ce053359ffef215b0e480b.zip
WaE: 'convertScreenToBase:' is deprecated: first deprecated in OS X 10.7
Change-Id: Ic25e9aca7a2a61ac677720427fae7a18a8a179fa
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/DropTarget.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/DropTarget.cxx b/vcl/osx/DropTarget.cxx
index 8e12d97a6d33..79b1fc409819 100644
--- a/vcl/osx/DropTarget.cxx
+++ b/vcl/osx/DropTarget.cxx
@@ -204,7 +204,7 @@ NSDragOperation DropTarget::draggingEntered(id sender)
NSPoint mouseLoc = [NSEvent mouseLocation];
id wnd = [mView window];
- NSPoint dragLocation = [mView convertPoint:[wnd convertScreenToBase:mouseLoc] fromView:nil];
+ NSPoint dragLocation = [mView convertPoint:[wnd convertRectFromScreen:NSMakeRect(mouseLoc.x, mouseLoc.y, 1, 1)].origin fromView:nil];
CocoaToVCL(dragLocation, bounds);
@@ -245,7 +245,7 @@ NSDragOperation DropTarget::draggingUpdated(id sender)
NSPoint mouseLoc = [NSEvent mouseLocation];
id wnd = [mView window];
- NSPoint dragLocation = [mView convertPoint:[wnd convertScreenToBase:mouseLoc] fromView:nil];
+ NSPoint dragLocation = [mView convertPoint:[wnd convertRectFromScreen:NSMakeRect(mouseLoc.x, mouseLoc.y, 1, 1)].origin fromView:nil];
CocoaToVCL(dragLocation, bounds);
@@ -311,7 +311,7 @@ BOOL DropTarget::performDragOperation()
NSPoint mouseLoc = [NSEvent mouseLocation];
id wnd = [mView window];
- NSPoint dragLocation = [mView convertPoint:[wnd convertScreenToBase:mouseLoc] fromView:nil];
+ NSPoint dragLocation = [mView convertPoint:[wnd convertRectFromScreen:NSMakeRect(mouseLoc.x, mouseLoc.y, 1, 1)].origin fromView:nil];
CocoaToVCL(dragLocation, bounds);