Change SDL_SetCursor to set the cursor back to the default cursor when the
window is unfocused.
This commit is contained in:
parent
0da1c5b3ae
commit
b7f2ad8ad0
3 changed files with 12 additions and 12 deletions
|
@ -465,7 +465,11 @@ SDL_SetCursor(SDL_Cursor * cursor)
|
|||
}
|
||||
mouse->cur_cursor = cursor;
|
||||
} else {
|
||||
cursor = mouse->cur_cursor;
|
||||
if (mouse->focus) {
|
||||
cursor = mouse->cur_cursor;
|
||||
} else {
|
||||
cursor = mouse->def_cursor;
|
||||
}
|
||||
}
|
||||
|
||||
if (cursor && mouse->cursor_shown && !mouse->relative_mode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue