comparison src/macosx/native/sun/awt/CDropTarget.m @ 5419:cb4f5f486c45

7161109: [macosx] JCK AWT interactive test DnDTextDropTest fails on MacOS Reviewed-by: serb
author kizune
date Tue, 17 Apr 2012 21:40:12 +0400
parents d45bc4307996
children d502cc7bcc3d
comparison
equal deleted inserted replaced
0:0b691f73efb5 1:05f188589af4
646 sDraggingError = TRUE; 646 sDraggingError = TRUE;
647 647
648 if (sDraggingError == FALSE) { 648 if (sDraggingError == FALSE) {
649 sDraggingLocation = [sender draggingLocation]; 649 sDraggingLocation = [sender draggingLocation];
650 NSPoint javaLocation = [fView convertPoint:sDraggingLocation fromView:nil]; 650 NSPoint javaLocation = [fView convertPoint:sDraggingLocation fromView:nil];
651 // The y coordinate that comes in the NSDraggingInfo seems to be reversed - probably
652 // has to do something with the type of view it comes to.
653 // This is the earliest place where we can correct it.
654 javaLocation.y = fView.window.frame.size.height - javaLocation.y;
651 655
652 jint actions = [DnDUtilities mapNSDragOperationMaskToJava:[sender draggingSourceOperationMask]]; 656 jint actions = [DnDUtilities mapNSDragOperationMaskToJava:[sender draggingSourceOperationMask]];
653 jint dropAction = sJavaDropOperation; 657 jint dropAction = sJavaDropOperation;
654 658
655 jlongArray formats = sDraggingFormats; 659 jlongArray formats = sDraggingFormats;