summaryrefslogtreecommitdiff
path: root/src/radeon_display.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-01-22 22:11:55 +1100
committerDave Airlie <airlied@linux.ie>2007-01-22 22:11:55 +1100
commit26e1bab2c7a4ad52710746265b3da495b54dab36 (patch)
tree5c2d3ba5b11a62c93a9bd3b3083bc033781928ca /src/radeon_display.c
parent9008e1caa45e4a18e6f3289c7b17036730fe578a (diff)
radeon: fixup some of the video code after randr
This may not be complete, I need to test on dual-head system later
Diffstat (limited to 'src/radeon_display.c')
-rw-r--r--src/radeon_display.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/radeon_display.c b/src/radeon_display.c
index a02167a4..afe6f944 100644
--- a/src/radeon_display.c
+++ b/src/radeon_display.c
@@ -2765,16 +2765,17 @@ RADEONChooseOverlayCRTC(ScrnInfoPtr pScrn, BoxPtr dstBox)
for (c = 0; c < xf86_config->num_crtc; c++)
{
- xf86CrtcPtr crtc = xf86_config->crtc[c];
+ xf86CrtcPtr crtc = xf86_config->crtc[c];
+
if (!crtc->enabled)
- continue;
+ continue;
if ((dstBox->x1 >= crtc->x) && (dstBox->y1 >= crtc->y))
- crtc_num = c;
+ crtc_num = c;
}
if (crtc_num == 1)
- info->OverlayOnCRTC2 = TRUE;
+ info->OverlayOnCRTC2 = TRUE;
else
- info->OverlayOnCRTC2 = FALSE;
+ info->OverlayOnCRTC2 = FALSE;
}