node-mac-recorder 1.11.0 → 1.13.0
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/index.js +6 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -167,8 +167,12 @@ class MacRecorder extends EventEmitter {
|
|
|
167
167
|
targetDisplayId = display.id; // Use actual display ID, not array index
|
|
168
168
|
// Koordinatları display'e göre normalize et
|
|
169
169
|
adjustedX = targetWindow.x - display.x;
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
|
|
171
|
+
// Y coordinate conversion: CGWindow (top-left) to AVFoundation (bottom-left)
|
|
172
|
+
// Overlay'deki dönüşümle aynı mantık: screenHeight - windowY - windowHeight
|
|
173
|
+
const displayHeight = parseInt(display.resolution.split("x")[1]);
|
|
174
|
+
const convertedY = displayHeight - targetWindow.y - targetWindow.height;
|
|
175
|
+
adjustedY = Math.max(0, convertedY - display.y);
|
|
172
176
|
break;
|
|
173
177
|
}
|
|
174
178
|
}
|