mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 10:18:40 +12:00
Qt: handle upstream trolling
This commit is contained in:
parent
65d270e5d8
commit
de693b0da1
1 changed files with 8 additions and 1 deletions
|
@ -320,7 +320,14 @@ bool gs_frame::nativeEvent(const QByteArray &eventType, void *message, long *res
|
||||||
|
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(wm_event_lock);
|
std::lock_guard<std::mutex> lock(wm_event_lock);
|
||||||
MSG* msg = static_cast<MSG*>(message);
|
|
||||||
|
// https://bugreports.qt.io/browse/QTBUG-69074?focusedCommentId=409797&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-409797
|
||||||
|
#if (QT_VERSION == QT_VERSION_CHECK(5, 11, 1))
|
||||||
|
MSG* msg = *reinterpret_cast<MSG**>(message);
|
||||||
|
#else
|
||||||
|
MSG* msg = reinterpret_cast<MSG*>(message);
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (msg->message)
|
switch (msg->message)
|
||||||
{
|
{
|
||||||
case WM_WINDOWPOSCHANGING:
|
case WM_WINDOWPOSCHANGING:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue