diff options
author | Guillem Jover <guillem@hadrons.org> | 2013-09-18 19:43:19 +0200 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2013-09-19 06:17:38 +0200 |
commit | 00bd4faaf963806f7b322e90fd33b57834a6dbe1 (patch) | |
tree | c55feb5cc2e5a933bc9ed3c272a5b12bfa3bb4e3 | |
parent | 9ff6c53d427c785898ccf34f7e322be0c8d0c2c3 (diff) |
Move miSetVisualTypes() call outside an if conditional
The function call is a bit long, take it out of the conditional and use
a ret variable instead.
Signed-off-by: Guillem Jover <guillem@hadrons.org>
-rw-r--r-- | src/glide_driver.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/glide_driver.c b/src/glide_driver.c index 897bebf..a37589f 100644 --- a/src/glide_driver.c +++ b/src/glide_driver.c @@ -606,9 +606,10 @@ GLIDEScreenInit(SCREEN_INIT_ARGS_DECL) miClearVisualTypes(); /* Setup the visuals we support. Only TrueColor. */ - if (!miSetVisualTypes(pScrn->depth, - miGetDefaultVisualMask(pScrn->depth), - pScrn->rgbBits, pScrn->defaultVisual)) + ret = miSetVisualTypes(pScrn->depth, + miGetDefaultVisualMask(pScrn->depth), + pScrn->rgbBits, pScrn->defaultVisual); + if (!ret) return FALSE; miSetPixmapDepths(); |