diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2019-07-12 11:34:44 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2019-10-11 12:03:42 +0000 |
commit | 86c8458f3d09d2c4fb68de7e6ab515739e8f8b3c (patch) | |
tree | 22baf7caa61b1ec9d3cfbaedde4c61d2fd414c9b /hw/vfb | |
parent | 744c419cb4eaed4006b5f0f319b72d7ffa9fbc6d (diff) |
vfb: clarify code flow in vfbScreenInit
v2: Enhance commit message (Pekka)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'hw/vfb')
-rw-r--r-- | hw/vfb/InitOutput.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c index 48efb61b2..f6079fefe 100644 --- a/hw/vfb/InitOutput.c +++ b/hw/vfb/InitOutput.c @@ -922,12 +922,12 @@ vfbScreenInit(ScreenPtr pScreen, int argc, char **argv) ret = fbScreenInit(pScreen, pbits, pvfb->width, pvfb->height, dpix, dpiy, pvfb->paddedWidth, pvfb->bitsPerPixel); - if (ret && Render) - fbPictureInit(pScreen, 0, 0); - if (!ret) return FALSE; + if (Render) + fbPictureInit(pScreen, 0, 0); + if (!vfbRandRInit(pScreen)) return FALSE; |