[Xfce4-commits] <xfce4-settings:bluesabre/display-settings> Recompute dimensions even if the mode hasn't changed
Simon Steinbeiss
noreply at xfce.org
Thu Oct 18 23:38:12 CEST 2012
Updating branch refs/heads/bluesabre/display-settings
to 3675e183cbf310dcd61eef51bd675906ae650115 (commit)
from 9e57b159422264e231c17f5cbbef58b517f56852 (commit)
commit 3675e183cbf310dcd61eef51bd675906ae650115
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date: Thu Oct 18 13:06:39 2012 +0200
Recompute dimensions even if the mode hasn't changed
(because the rotation may have changed)
Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
xfsettingsd/displays.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/xfsettingsd/displays.c b/xfsettingsd/displays.c
index 8948637..b21b2bc 100644
--- a/xfsettingsd/displays.c
+++ b/xfsettingsd/displays.c
@@ -676,18 +676,18 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper *helper,
/* update CRTC mode */
crtc->mode = valid_mode;
crtc->changed = TRUE;
+ }
- /* recompute dimensions according to the selected rotation */
- if ((crtc->rotation & (RR_Rotate_90|RR_Rotate_270)) != 0)
- {
- crtc->width = resources->modes[l].height;
- crtc->height = resources->modes[l].width;
- }
- else
- {
- crtc->width = resources->modes[l].width;
- crtc->height = resources->modes[l].height;
- }
+ /* recompute dimensions according to the selected rotation */
+ if ((crtc->rotation & (RR_Rotate_90|RR_Rotate_270)) != 0)
+ {
+ crtc->width = resources->modes[l].height;
+ crtc->height = resources->modes[l].width;
+ }
+ else
+ {
+ crtc->width = resources->modes[l].width;
+ crtc->height = resources->modes[l].height;
}
/* position, x */
More information about the Xfce4-commits
mailing list