Skip to content

Commit

Permalink
Was accidentally disabling rotation updates in mode set.
Browse files Browse the repository at this point in the history
Setting a mode on an unrotated CRTC was causing all of the rotation updates
to be disabled; the loop looking for active rotation wasn't actually looking
at each crtc, it was looking at the modified crtc many times.
  • Loading branch information
Keith Packard committed Apr 20, 2007
1 parent a63704f commit 8b217de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hw/xfree86/modes/xf86Rotate.c
Expand Up @@ -284,7 +284,7 @@ xf86RotateRedisplay(ScreenPtr pScreen)
{
xf86CrtcPtr crtc = xf86_config->crtc[c];

if (crtc->rotation != RR_Rotate_0)
if (crtc->rotation != RR_Rotate_0 && crtc->enabled)
{
BoxRec box;
RegionRec crtc_damage;
Expand Down Expand Up @@ -338,7 +338,8 @@ xf86RotateDestroy (xf86CrtcPtr crtc)
}

for (c = 0; c < xf86_config->num_crtc; c++)
if (crtc->rotatedPixmap || crtc->rotatedData)
if (xf86_config->crtc[c]->rotatedPixmap ||
xf86_config->crtc[c]->rotatedData)
return;

/*
Expand Down

0 comments on commit 8b217de

Please sign in to comment.