Output: Choose sane default mode
authorDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 2 Dec 2011 14:27:01 +0000 (15:27 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 2 Dec 2011 14:27:01 +0000 (15:27 +0100)
commit3aad1107d88ec410b3f2d740c03aef896c3594d2
treeee9cb84543b49e6473759be38941ad7f9ab94818
parent9b88fe87e28c06b3f6c1a9ce353327a920e6a36b
Output: Choose sane default mode

We currently use the first mode in the list if no mode is explicitely specified
by the caller. However, this is most often the lowest available resolution
reported by the kernel.

This patch adds a new pointer to every output which remembers a sane default.
This is currently the first mode reported by the kernel but may later be
optimized to choose a better default mode.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/output.c
src/output.h