Skip to content

Commit

Permalink
keep cursor locked on bnet
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Dec 18, 2019
1 parent 785748d commit 3bf11ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/ddraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
case WM_ACTIVATEAPP:
{
if (!wParam)
{
MouseUnlock();
}

// keep drawing in windowed mode
if (!Fullscreen)
return 0;
Expand All @@ -739,7 +744,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
if (wParam == WA_INACTIVE)
{
MouseUnlock();
//MouseUnlock();
}
else if (wParam == WA_ACTIVE)
{
Expand Down
6 changes: 3 additions & 3 deletions src/resource.rc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <windows.h>

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,1,6,2
PRODUCTVERSION 0,1,6,2
FILEVERSION 0,1,6,7
PRODUCTVERSION 0,1,6,7
FILEFLAGSMASK 63
FILEFLAGS 0
FILEOS VOS_UNKNOWN
Expand All @@ -14,7 +14,7 @@ FILESUBTYPE VFT2_UNKNOWN
BLOCK "040904E4" /* LANG_ENGLISH/SUBLANG_DEFAULT, CP 1252 */
{
VALUE "FileDescription", "compatibility ddraw proxy for war2bne"
VALUE "FileVersion", "0.1.6.2"
VALUE "FileVersion", "0.1.6.7"
VALUE "LegalCopyright", "https://github.com/FunkyFr3sh/Aqrit-DDraw-Hack"
}
}
Expand Down

0 comments on commit 3bf11ef

Please sign in to comment.