mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
fix: 修复特定情况下终止缩放时崩溃
This commit is contained in:
parent
45583f105a
commit
7287e8be40
1 changed files with 3 additions and 0 deletions
|
|
@ -482,6 +482,9 @@ LRESULT ScalingWindow::_MessageHandler(UINT msg, WPARAM wParam, LPARAM lParam) n
|
|||
{
|
||||
// 调整窗口大小时会进入 OS 的内部循环,我们的消息循环没有机会调用 Render。幸运的是
|
||||
// 内部循环会正常分发消息,因此有必要在窗口过程中执行渲染以避免调整大小时渲染暂停。
|
||||
if (!_renderer) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// 删除消息队列中的其他 WM_FRONTEND_RENDER 以避免重复渲染
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue