projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07a91cd
)
xwayland: Use the right length for iterating through the formats array
author
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 16 Jul 2012 15:52:40 +0000
(11:52 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 16 Jul 2012 17:35:26 +0000
(13:35 -0400)
Spotted by Tiago Vignatti, minimal fix to just use the right length.
src/xwayland/window-manager.c
patch
|
blob
|
history
diff --git
a/src/xwayland/window-manager.c
b/src/xwayland/window-manager.c
index
6e032ea
..
1ec6a8b
100644
(file)
--- a/
src/xwayland/window-manager.c
+++ b/
src/xwayland/window-manager.c
@@
-1065,7
+1065,7
@@
wxs_wm_get_resources(struct weston_wm *wm)
return;
formats = xcb_render_query_pict_formats_formats(formats_reply);
- for (i = 0; i < formats_reply->
length
; i++)
+ for (i = 0; i < formats_reply->
num_formats
; i++)
if (formats[i].type == XCB_RENDER_PICT_TYPE_DIRECT &&
formats[i].depth == 24)
wm->render_format = formats[i];