vfb: clarify code flow in vfbScreenInit
v2: Enhance commit message (Pekka) Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
744c419cb4
commit
86c8458f3d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue