projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1109503
)
st/nine: Initialize manually cursor structure
author
Axel Davy
<davyaxel0@gmail.com>
Sat, 15 Sep 2018 18:15:12 +0000
(20:15 +0200)
committer
Axel Davy
<davyaxel0@gmail.com>
Tue, 25 Sep 2018 20:05:24 +0000
(22:05 +0200)
Initialize manually the cursor structure fields
for more clarity on its content.
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/device9.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/nine/device9.c
b/src/gallium/state_trackers/nine/device9.c
index 293f63bd7b7671b85d15e1c88529392e13199011..9bb97bdf9c3c2ebdfc895d1a9c209eba3e650790 100644
(file)
--- 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));