diff --git a/DDrawCompat/Gdi/PresentationWindow.cpp b/DDrawCompat/Gdi/PresentationWindow.cpp index 392d250..3ce95b1 100644 --- a/DDrawCompat/Gdi/PresentationWindow.cpp +++ b/DDrawCompat/Gdi/PresentationWindow.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -44,6 +45,7 @@ namespace Gdi { AttachThreadInput(GetCurrentThreadId(), GetWindowThreadProcessId(owner, nullptr), FALSE); } + DDraw::RealPrimarySurface::scheduleOverlayUpdate(); } }); return LOG_RESULT(presentationWindow); diff --git a/DDrawCompat/Win32/DisplayMode.cpp b/DDrawCompat/Win32/DisplayMode.cpp index d1457a3..163cc61 100644 --- a/DDrawCompat/Win32/DisplayMode.cpp +++ b/DDrawCompat/Win32/DisplayMode.cpp @@ -250,6 +250,7 @@ namespace SIZE res = lpDevMode ? emulatedResolution : makeSize(currDevMode.dmPelsWidth, currDevMode.dmPelsHeight); EnumWindows(sendDisplayChange, (res.cy << 16) | res.cx); + ClipCursor(nullptr); SetCursorPos(currDevMode.dmPosition.x + res.cx / 2, currDevMode.dmPosition.y + res.cy / 2); Gdi::VirtualScreen::update();