diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 1999-11-12 00:14:06 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:03:28 +0100 |
commit | 8b286e48888636d189eb3d63f264c8f82678af19 (patch) | |
tree | 5aa4245db5a3b825b5cab055bc7b18b1add98a8d /src/glut/glx/layerutil.c | |
parent | 4eea2c9a4cb450f781e5e377da4325b5892898f2 (diff) | |
download | glut-8b286e48888636d189eb3d63f264c8f82678af19.tar.gz |
added some braces to silence gcc warnings
Diffstat (limited to 'src/glut/glx/layerutil.c')
-rw-r--r-- | src/glut/glx/layerutil.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/glut/glx/layerutil.c b/src/glut/glx/layerutil.c index 80ee195..26ba0b6 100644 --- a/src/glut/glx/layerutil.c +++ b/src/glut/glx/layerutil.c @@ -129,26 +129,29 @@ __glutXGetLayerVisualInfo(Display * dpy, long lvinfo_mask, break; } } - if (lvinfo_mask & VisualLayerMask) + if (lvinfo_mask & VisualLayerMask) { if (overlayInfo == NULL) { if (lvinfo_template->layer != 0) continue; } else if (lvinfo_template->layer != overlayInfo->layer) continue; - if (lvinfo_mask & VisualTransparentType) + } + if (lvinfo_mask & VisualTransparentType) { if (overlayInfo == NULL) { if (lvinfo_template->type != None) continue; } else if (lvinfo_template->type != overlayInfo->transparent_type) continue; - if (lvinfo_mask & VisualTransparentValue) + } + if (lvinfo_mask & VisualTransparentValue) { if (overlayInfo == NULL) /* Non-overlay visuals have no sense of TransparentValue. */ continue; else if (lvinfo_template->value != overlayInfo->value) continue; + } layerInfo[count].vinfo = *pVinfo; if (overlayInfo == NULL) { layerInfo[count].layer = 0; |