diff options
author | Ville Syrjälä <ville.syrjala@nokia.com> | 2010-06-28 23:26:48 +0300 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-06-30 08:47:22 -0700 |
commit | 390a8466dd1914f4786b811ff8454f6e0c4b6b04 (patch) | |
tree | 1ed37718f1083e73ae4402ba20cbec3157f0520d | |
parent | 6052710670953b43b4fff5d101b727163fcb1187 (diff) |
xfree86/modes: Allow the driver to specify initial rotation
When the "Rotate" option isn't specified allow the driver to specify
the initial rotation mode. This way the driver can choose to retain
the same settings that were used by software that was used prior to
starting X.
Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | hw/xfree86/modes/xf86Crtc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index 7f6fad378..b2daec72e 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -572,8 +572,11 @@ xf86OutputInitialRotation (xf86OutputPtr output) OPTION_ROTATE); int i; - if (!rotate_name) + if (!rotate_name) { + if (output->initial_rotation) + return output->initial_rotation; return RR_Rotate_0; + } for (i = 0; i < 4; i++) if (xf86nameCompare (direction[i], rotate_name) == 0) |