st/nine: Don't call SetCursor until a cursor is set
authorAxel Davy <davyaxel0@gmail.com>
Sat, 15 Sep 2018 19:53:25 +0000 (21:53 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Tue, 25 Sep 2018 20:05:24 +0000 (22:05 +0200)
commit0eeb583650c64e789e0bfa7b3194310c5c44ba4f
tree8271aa0f42f7f0cfa0a88a9fa07e9092ea268431
parentdcfde02bb0f0b9fdd8d45a22540683fe0aaab9ec
st/nine: Don't call SetCursor until a cursor is set

The previous code was ignoring the input
until a cursor is set inside d3d
(with SetCursorProperties), as expected
by wine tests.

However it did still make a call to ID3DPresent_SetCursor,
which would result into a SetCursor(NULL) call, thus
hidding any cursor set outside d3d, which we shouldn't do.

Add comment about not avoiding redundant ID3DPresent_SetCursor
calls once a cursor has been set in d3d, as it has been tested to
cause regressions.

Fixes: https://github.com/iXit/Mesa-3D/issues/197
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/device9.c