node-mac-recorder 2.0.0 → 2.0.1

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.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
Binary file
@@ -133,8 +133,9 @@ static NSURL *g_outputURL = nil;
133
133
  cfg.width = (int)src.size.width;
134
134
  cfg.height = (int)src.size.height;
135
135
  } else {
136
- cfg.width = (int)targetDisplay.width;
137
- cfg.height = (int)targetDisplay.height;
136
+ CGRect displayFrame = targetDisplay.frame;
137
+ cfg.width = (int)displayFrame.size.width;
138
+ cfg.height = (int)displayFrame.size.height;
138
139
  }
139
140
  cfg.showsCursor = captureCursorNum.boolValue;
140
141
  if (includeMicNum || includeSystemAudioNum) {