Commit 390a8466 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Keith Packard

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: default avatarVille Syrjälä <ville.syrjala@nokia.com>
Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
parent 60527106
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment