Kaydet (Commit) 7bfe288d authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: 'convertScreenToBase:' is deprecated: first deprecated in OS X 10.7

Change-Id: Ic25e9aca7a2a61ac677720427fae7a18a8a179fa
üst 6c2f65df
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment