node-mac-recorder 2.21.45 → 2.21.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.21.45",
3
+ "version": "2.21.46",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1261,6 +1261,12 @@ static NSString* cursorTypeFromSeed(int seed) {
1261
1261
  if (override) {
1262
1262
  return override;
1263
1263
  }
1264
+
1265
+ buildRuntimeSeedMapping();
1266
+ NSString *runtime = [g_seedToTypeMap objectForKey:key];
1267
+ if (runtime) {
1268
+ return runtime;
1269
+ }
1264
1270
  }
1265
1271
  switch(seed) {
1266
1272
  case 741324: return @"auto";
@@ -1710,10 +1716,9 @@ static NSString* detectSystemCursorType(void) {
1710
1716
  dispatch_sync(dispatch_get_main_queue(), fetchCursorBlock);
1711
1717
  }
1712
1718
 
1713
- // Seed learning disabled - using hardcoded mapping instead
1714
- // if (cursorType && ![cursorType isEqualToString:@"default"] && cursorSeed > 0 && detectedCursor) {
1715
- // addCursorToSeedMap(detectedCursor, cursorType, cursorSeed);
1716
- // }
1719
+ if (cursorType && ![cursorType isEqualToString:@"default"] && cursorSeed > 0 && detectedCursor) {
1720
+ addCursorToSeedMap(detectedCursor, cursorType, cursorSeed);
1721
+ }
1717
1722
 
1718
1723
  return cursorType;
1719
1724
  }