alexzielenski / Mousecape

Cursor Manager for OSX
http://www.alexzielenski.com
Other
1.32k stars 165 forks source link

Frames limit? #222

Open THEDESTROYER6667 opened 5 months ago

THEDESTROYER6667 commented 5 months ago

When I want to make an animated cursor, what is the limit for the frames I can stack?

NordJan commented 5 months ago

I don't know the maximum (if that is what you mean by limit), but Blau2 has 18 frames in the Busy cursor. On the other end, 2 is the minimum, I guess ;-). Cheers, Nord

ICrashWindows12 commented 5 months ago

The limit is 24, after that it will say the value is too large, im trying to reverse engineer the code so I can have 25 frames

ICrashWindows12 commented 5 months ago

this is the part of the code which says the limit is 24:

BOOL applyCursorForIdentifier(NSUInteger frameCount, CGFloat frameDuration, CGPoint hotSpot, CGSize size, NSArray *images, NSString *ident, NSUInteger repeatCount) { if (frameCount > 24 || frameCount < 1) { MMLog(BOLD RED "Frame count of %s out of range [1...24]", ident.UTF8String); return NO; }