mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Only use a transparent cursor on Windows when connected via RDP
VMware relies on the cursor being set to NULL to optimize relative mouse motion for games. We should also revisit whether current RDP works better with a NULL cursor or a transparent cursor. Fixes https://github.com/libsdl-org/SDL/issues/13700 (cherry picked from commitdac6af4ba6) (cherry picked from commit55b599d693)
This commit is contained in:
parent
60515350ae
commit
ecc71c02ea
1 changed files with 4 additions and 1 deletions
|
|
@ -250,7 +250,10 @@ static void WIN_FreeCursor(SDL_Cursor *cursor)
|
|||
static int WIN_ShowCursor(SDL_Cursor *cursor)
|
||||
{
|
||||
if (!cursor) {
|
||||
cursor = SDL_blank_cursor;
|
||||
if (GetSystemMetrics(SM_REMOTESESSION)) {
|
||||
// Use a blank cursor so we continue to get relative motion over RDP
|
||||
cursor = SDL_blank_cursor;
|
||||
}
|
||||
}
|
||||
if (cursor) {
|
||||
SDL_cursor = (HCURSOR)cursor->driverdata;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue