summaryrefslogtreecommitdiff
path: root/xserver/randr/rrscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/randr/rrscreen.c')
-rw-r--r--xserver/randr/rrscreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/randr/rrscreen.c b/xserver/randr/rrscreen.c
index 0c70b28dd..d059ce74a 100644
--- a/xserver/randr/rrscreen.c
+++ b/xserver/randr/rrscreen.c
@@ -272,7 +272,7 @@ ProcRRSetScreenSize(ClientPtr client)
int source_height = mode->mode.height;
Rotation rotation = crtc->rotation;
- if (rotation == RR_Rotate_90 || rotation == RR_Rotate_270) {
+ if (rotation & (RR_Rotate_90 | RR_Rotate_270)) {
source_width = mode->mode.height;
source_height = mode->mode.width;
}