From cd26b81e3a16630cb69fc65e207df3e3ad618944 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 18 Jul 2011 23:59:01 +0100 Subject: [PATCH] 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 Tested-By: Damian Nowak Signed-off-by: Emil Velikov --- src/drmmode_display.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index e5e4673..3afef66 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -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); } -- 1.7.6