kms plugin: use first returned mode if no preferred one is present
authorRolf Eike Beer <eb@emlix.com>
Wed, 7 May 2014 09:04:36 +0000 (11:04 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 May 2014 14:33:31 +0000 (16:33 +0200)
commit6f6cfda8c459ab9c0a311e8643ef2534c5e194c2
treede439eaa4cf5a175441de9399e24800b58faf418
parent9c4996b709ee5cebb1513bb7fe4703caee90f304
kms plugin: use first returned mode if no preferred one is present

The list of returned modes is scanned for the first one marked as
preferred, and that is used. If no preferred mode was found then the
builtin default mode of 1024x768 is used. Use that builtin mode only if
no modes were returned at all, pick the first one if any were returned.

Change-Id: Ib355cc92219ced093c605f49dae4e34ff244b639
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
src/plugins/platforms/kms/qkmsscreen.cpp