-
Committer:
CI Train Bot
-
Author(s):
Daniel van Vugt
-
Date:
2016-03-29 19:24:09 UTC
-
mfrom:
(462.1.1 fix-1560497)
-
Revision ID:
ci-train-bot@canonical.com-20160329192409-ojue005o8onyeq78
Don't use preferred_mode_index. Some devices like TVs don't provide a
preferred mode, so preferred_mode_index may be out of range (a clumsy
way to represent 'none'). Instead use the resolution of the current display mode, which should always be in range.
Fixes LP: #1560497 Fixes: #1560497
Approved by: Gerry Boland