mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
fix: 修复有时退出缩放光标不立刻显示的问题
主要是拖拽窗口时
This commit is contained in:
parent
c32148b1d6
commit
f919666f08
7 changed files with 16 additions and 12 deletions
|
|
@ -122,11 +122,15 @@ FrameSourceBase::UpdateState GraphicsCaptureFrameSource::_Update() noexcept {
|
|||
return UpdateState::NewFrame;
|
||||
}
|
||||
|
||||
void GraphicsCaptureFrameSource::OnCursorVisibilityChanged(bool isVisible) noexcept {
|
||||
void GraphicsCaptureFrameSource::OnCursorVisibilityChanged(bool isVisible, bool onDestory) noexcept {
|
||||
// 显示光标时必须重启捕获
|
||||
if (isVisible) {
|
||||
_StopCapture();
|
||||
_StartCapture();
|
||||
SystemParametersInfo(SPI_SETCURSORS, 0, nullptr, 0);
|
||||
|
||||
if (!onDestory) {
|
||||
_StartCapture();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue