Skip to content

Commit

Permalink
The Qt website's fix is actually incorrect...
Browse files Browse the repository at this point in the history
  • Loading branch information
agatti committed Aug 25, 2022
1 parent 98490ed commit 9e4eaee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GUI/MainWindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ namespace degate
// Workaround for a bug on Windows that occurs when using QOpenGLWidget + fullscreen mode.
// See: https://doc.qt.io/qt-6/windows-issues.html#fullscreen-opengl-based-windows.
#ifdef SYS_WINDOWS
HWND handle = reinterpret_cast<HWND>(window.winId());
HWND handle = reinterpret_cast<HWND>(window()->winId());
SetWindowLongPtr(handle, GWL_STYLE, GetWindowLongPtr(handle, GWL_STYLE) | WS_BORDER);
#endif

Expand Down

0 comments on commit 9e4eaee

Please sign in to comment.