mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
make devmode working in windowed mode too
This commit is contained in:
parent
61075139f2
commit
a0605813a9
2
ddraw.rc
2
ddraw.rc
@ -4,7 +4,7 @@
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 2
|
||||||
#define VERSION_BUILD 4
|
#define VERSION_BUILD 4
|
||||||
#define VERSION_REVISION 0
|
#define VERSION_REVISION 1
|
||||||
|
|
||||||
#define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION
|
#define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION
|
||||||
#define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION)
|
#define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION)
|
||||||
|
12
src/mouse.c
12
src/mouse.c
@ -104,16 +104,8 @@ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint)
|
|||||||
|
|
||||||
if (lpPoint)
|
if (lpPoint)
|
||||||
{
|
{
|
||||||
if (ddraw->devmode)
|
lpPoint->x = (int)ddraw->cursor.x;
|
||||||
{
|
lpPoint->y = (int)ddraw->cursor.y;
|
||||||
lpPoint->x = realpt.x;
|
|
||||||
lpPoint->y = realpt.y;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
lpPoint->x = (int)ddraw->cursor.x;
|
|
||||||
lpPoint->y = (int)ddraw->cursor.y;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user