mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
fix: 优化 3D 游戏模式
This commit is contained in:
parent
6dbb9f83ea
commit
475c32a2ef
3 changed files with 15 additions and 4 deletions
|
|
@ -413,8 +413,9 @@ LRESULT App::_HostWndProcStatic(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|||
|
||||
|
||||
LRESULT App::_HostWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
|
||||
for (auto& pair : _wndProcHandlers) {
|
||||
const auto& result = pair.second(hWnd, message, wParam, lParam);
|
||||
// 以反向调用回调
|
||||
for (auto it = _wndProcHandlers.rbegin(); it != _wndProcHandlers.rend(); ++it) {
|
||||
const auto& result = it->second(hWnd, message, wParam, lParam);
|
||||
if (result.has_value()) {
|
||||
return result.value();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue