compositor-drm: Refactor initial mode out of create_output
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 4 Jun 2014 11:00:53 +0000 (14:00 +0300)
committerDaniel Stone <daniels@collabora.com>
Thu, 16 Jul 2015 15:40:41 +0000 (16:40 +0100)
commit7b36b420c137d0e2d9e64572da6b62156bd2efc8
tree07d8a6923ddec6f58ecfecf5f5e8b93d3f210574
parentb7df04ebc048e18417a13d577d977d6e36c8a8ca
compositor-drm: Refactor initial mode out of create_output

Refactor the code for choosing the initial mode for an output from
create_output_for_connector() to drm_output_choose_initial_mode().

This makes create_output_for_connector() slightly easier to read.

v2: Document everything.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
src/compositor-drm.c