Zhao Yuhang
2023-12-17 2f8c059ea4a942064c38044c28539e37cd6e0fbc
minor tweaks
2个文件已修改
4 ■■■■ 已修改文件
examples/qml/CMakeLists.txt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/core/contexts/win32windowcontext.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
examples/qml/CMakeLists.txt
@@ -3,7 +3,7 @@
file(GLOB _src *.h *.cpp *.qrc)
qwk_add_example(${PROJECT_NAME}
    SOURCES ${_src}
    SOURCES ${_src} ../shared/resources/shared.qrc
    QT_LINKS Core Gui Qml Quick
    LINKS QWKQuick
)
src/core/contexts/win32windowcontext.cpp
@@ -1549,7 +1549,7 @@
                // we don't repaint it. This exception disappears if we add SWP_NOCOPYBITS flag.
                // But I don't know what caused the problem, or why this would solve it.
                const auto windowPos = reinterpret_cast<LPWINDOWPOS>(lParam);
                if ((windowPos->flags & SWP_FRAMECHANGED) && (windowPos->flags & SWP_NOSIZE)) {
                if (windowPos->flags == 0x37) {
                    windowPos->flags |= SWP_NOCOPYBITS;
                }
                break;