Permalink
Browse files

drmmode_display: Resolve missing brackets

Correct some missing/misplaced brackets in drmmode_pre_init()
The issue was exposed when trying a 4 monitor desktop using two
cards/gpus

Resolves https://bugs.freedesktop.org/show_bug.cgi?id=39099

Reported-By: Damian Nowak <nowaker@geozone.pl>
Tested-By: Damian Nowak <nowaker@geozone.pl>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information...
evelikov authored and skeggsb committed Jul 18, 2011
1 parent ef49574 commit de9d1ba7efeba64f319efa00df183d3cb78f24af
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/drmmode_display.c
View
@@ -1185,8 +1185,8 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, int fd, int cpp)
xf86CrtcSetSizeRange(pScrn, 320, 200, drmmode->mode_res->max_width,
drmmode->mode_res->max_height);
for (i = 0; i < drmmode->mode_res->count_crtcs; i++) {
- if (!xf86IsEntityShared(pScrn->entityList[0] ||
- pScrn->confScreen->device->screen == i))
+ if (!xf86IsEntityShared(pScrn->entityList[0]) ||
+ (pScrn->confScreen->device->screen == i))
drmmode_crtc_init(pScrn, drmmode, i);
}

0 comments on commit de9d1ba

Please sign in to comment.