Commit 38e9762e authored by Felix Paul Kühne's avatar Felix Paul Kühne

windowed mac plugin: fixed compilation for the 32bit runtime

parent 3e6d24b7
......@@ -934,7 +934,7 @@ static CGImageRef createImageNamed(NSString *name)
else {
NSPoint point = [NSEvent mouseLocation];
[controllerLayer handleMouseDown:[browserRootLayer convertPoint:point toLayer:controllerLayer]];
[controllerLayer handleMouseDown:[browserRootLayer convertPoint:CGPointMake(point.x, point.y) toLayer:controllerLayer]];
}
}
......@@ -945,7 +945,7 @@ static CGImageRef createImageNamed(NSString *name)
{
NSPoint point = [NSEvent mouseLocation];
[controllerLayer handleMouseUp:[browserRootLayer convertPoint:point toLayer:controllerLayer]];
[controllerLayer handleMouseUp:[browserRootLayer convertPoint:CGPointMake(point.x, point.y) toLayer:controllerLayer]];
[super mouseUp: theEvent];
}
......@@ -954,7 +954,7 @@ static CGImageRef createImageNamed(NSString *name)
{
NSPoint point = [NSEvent mouseLocation];
[controllerLayer handleMouseDragged:[browserRootLayer convertPoint:point toLayer:controllerLayer]];
[controllerLayer handleMouseDragged:[browserRootLayer convertPoint:CGPointMake(point.x, point.y) toLayer:controllerLayer]];
[super mouseDragged: theEvent];
}
......
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