diff options
author | Jaroslav Hensl <emulator@emulace.cz> | 2023-09-07 14:34:12 +0200 |
---|---|---|
committer | Jaroslav Hensl <emulator@emulace.cz> | 2023-09-07 14:34:12 +0200 |
commit | acde242b61c662d3f234fc051f059fa58875f5fd (patch) | |
tree | 63b6a12899bcd6acc4fe64c6b1b1915b87c7df12 /dibcall.c | |
parent | 6eb9ffbc6cf3141d59220fee159786f186b65041 (diff) | |
download | vmdisp9x-1.2023.0.24.tar.gz |
SVGA: config in registry, better locking, HW cursor off by defaultv1.2023.0.24
Diffstat (limited to 'dibcall.c')
-rw-r--r-- | dibcall.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -187,6 +187,10 @@ void WINAPI __loadds MoveCursor(WORD absX, WORD absY) SVGA_MoveCursor(cursorVisible, absX, absY, 0);
SVGAHDA_unlock(LOCK_FIFO);
}
+
+ /* save last position */
+ cursorX = absX;
+ cursorY = absY;
}
else
{
@@ -281,6 +285,13 @@ WORD WINAPI __loadds SetCursor_driver(CURSORSHAPE __far *lpCursor) }
}
+ /* move cursor to last known position */
+ if(SVGAHDA_trylock(LOCK_FIFO))
+ {
+ SVGA_MoveCursor(cursorVisible, cursorX, cursorY, 0);
+ SVGAHDA_unlock(LOCK_FIFO);
+ }
+
cursorVisible = TRUE;
}
else
|