Build fix for i386. Workaround for 4213314
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2006 22:42:17 +0000 (22:42 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2006 22:42:17 +0000 (22:42 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13018 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/platform/mac/CursorMac.mm

index d7af0e9f4ec0f34917fa8ff4747f7429e18978f6..f8e47583e0c31d8bf81602cd7b7dade074dcf5c2 100644 (file)
@@ -65,7 +65,8 @@ static NSCursor* leakNamedCursor(const char* name, int x, int y)
     [resourceName release];
     NSCursor* cursor = 0;
     if (cursorImage) {
-        cursor = [[NSCursor alloc] initWithImage:cursorImage hotSpot:NSMakePoint(x, y)];
+        NSPoint hotSpotPoint = {x, y}; // workaround for 4213314
+        cursor = [[NSCursor alloc] initWithImage:cursorImage hotSpot:hotSpotPoint];
         [cursorImage release];
     }
     return cursor;