Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(win): draw the DXGI cursor at its real size

EtienneLescot1b8d3f5272bf
diff --git a/electron/native/wgc-capture/src/dxgi_duplication_session.cpp b/electron/native/wgc-capture/src/dxgi_duplication_session.cpp
index e4a4b8c07..dc632c24f 100644
--- a/electron/native/wgc-capture/src/dxgi_duplication_session.cpp
+++ b/electron/native/wgc-capture/src/dxgi_duplication_session.cpp
@@ -333,7 +333,7 @@ void DxgiDuplicationSession::drawCursor() {
// look the way they do on screen.
DrawIconEx(dc, ci.ptScreenPos.x - desktopRect_.left - static_cast<int>(icon.xHotspot),
ci.ptScreenPos.y - desktopRect_.top - static_cast<int>(icon.yHotspot), ci.hCursor, 0,
- 0, 0, nullptr, DI_NORMAL | DI_DEFAULTSIZE);
+ 0, 0, nullptr, DI_NORMAL);
surface->ReleaseDC(nullptr);
}