Revision: 13570
          http://sourceforge.net/p/skim-app/code/13570
Author:   hofman
Date:     2023-08-10 22:04:43 +0000 (Thu, 10 Aug 2023)
Log Message:
-----------
replace rather than insert laser pointer cursor in pointer array

Modified Paths:
--------------
    trunk/NSCursor_SKExtensions.m

Modified: trunk/NSCursor_SKExtensions.m
===================================================================
--- trunk/NSCursor_SKExtensions.m       2023-08-10 17:06:05 UTC (rev 13569)
+++ trunk/NSCursor_SKExtensions.m       2023-08-10 22:04:43 UTC (rev 13570)
@@ -230,9 +230,9 @@
     }
     NSCursor *cursor = (id)[laserPointerCursors pointerAtIndex:color % 7];
     if (nil == cursor) {
-        NSImage *cursorImage = [NSImage laserPointerImageWithColor:color];
+        NSImage *cursorImage = [NSImage laserPointerImageWithColor:color % 7];
         cursor = [[[NSCursor alloc] initWithImage:cursorImage 
hotSpot:NSMakePoint(0.5 * [cursorImage size].width, 0.5 * [cursorImage 
size].height)] autorelease];
-        [laserPointerCursors insertPointer:cursor atIndex:color % 7];
+        [laserPointerCursors replacePointerAtIndex:color % 7 
withPointer:cursor];
     }
     return cursor;
 }
@@ -245,9 +245,9 @@
     }
     NSCursor *cursor = (id)[laserPointerCursors pointerAtIndex:color % 7];
     if (nil == cursor) {
-        NSImage *cursorImage = [NSImage laserPointerImageWithColor:color];
+        NSImage *cursorImage = [NSImage laserPointerImageWithColor:color % 7];
         cursor = [[[SKLaserPointerCursor alloc] initWithImage:cursorImage 
hotSpot:NSMakePoint(0.5 * [cursorImage size].width, 0.5 * [cursorImage 
size].height)] autorelease];
-        [laserPointerCursors insertPointer:cursor atIndex:color % 7];
+        [laserPointerCursors replacePointerAtIndex:color % 7 
withPointer:cursor];
     }
     return cursor;
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to