noobs 0.0.65 → 0.0.66

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/dist/noobs.node CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noobs",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "A native Node.js addon with libobs bindings for Warcraft Recorder.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -575,7 +575,7 @@ void draw_callback(void* data, uint32_t cx, uint32_t cy) {
575
575
  }
576
576
 
577
577
  void ObsInterface::initPreview(HWND parent) {
578
- blog(LOG_INFO, "ObsInterface::showPreview");
578
+ blog(LOG_INFO, "ObsInterface::initPreview");
579
579
 
580
580
  if (!preview_hwnd) {
581
581
  blog(LOG_INFO, "Creating preview child window");
@@ -638,7 +638,7 @@ void ObsInterface::showPreview(int x, int y, int width, int height) {
638
638
  NULL, // No Z-order change
639
639
  x, y, // New position (x, y)
640
640
  width, height, // New size (width, height)
641
- SWP_NOZORDER | SWP_NOACTIVATE // Don't change position, Z-order, or activation
641
+ SWP_NOACTIVATE // Flags
642
642
  );
643
643
 
644
644
  if (!success) {
@@ -646,6 +646,7 @@ void ObsInterface::showPreview(int x, int y, int width, int height) {
646
646
  return;
647
647
  }
648
648
 
649
+ obs_display_resize(display, width, height);
649
650
  ShowWindow(preview_hwnd, SW_SHOW);
650
651
  obs_display_set_enabled(display, true);
651
652
  }