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>
This commit is contained in:
parent
6052710670
commit
390a8466dd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user