diff options
author | Axel Davy <[email protected]> | 2018-09-15 20:15:12 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2018-09-25 22:05:24 +0200 |
commit | 62ea55ec8b13bedefc28538a1a5de154bd33db1a (patch) | |
tree | 47d1b5c26a02edf3842b98be19e56df63e1ec971 | |
parent | 110950318c14ef8e97021de157d936f022f37027 (diff) |
st/nine: Initialize manually cursor structure
Initialize manually the cursor structure fields
for more clarity on its content.
Signed-off-by: Axel Davy <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 293f63bd7b7..9bb97bdf9c3 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -331,6 +331,10 @@ NineDevice9_ctor( struct NineDevice9 *This, This->cursor.software = FALSE; This->cursor.hotspot.x = -1; This->cursor.hotspot.y = -1; + This->cursor.w = This->cursor.h = 0; + This->cursor.visible = FALSE; + This->cursor.pos.x = 0; + This->cursor.pos.y = 0; { struct pipe_resource tmpl; memset(&tmpl, 0, sizeof(tmpl)); |