]> git.ipfire.org Git - thirdparty/plymouth.git/commit
[drm] Store mode of each head as index
authorRay Strode <rstrode@redhat.com>
Mon, 14 Jun 2010 02:18:35 +0000 (22:18 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 14 Jun 2010 02:24:33 +0000 (22:24 -0400)
commitabfda7550ac2fca6d816862e271126c2f44fa3cc
treec364697e7562819694ac9079b1b59e5c6e16f54a
parentce884c5ca25aaa6223516030ba9b1c201999590a
[drm] Store mode of each head as index

Previously, we would store the mode of each head as pointer in
the array of modes on the connector object.  Now we just store
the index into that array.

This is to make it clearer that we don't own the memory
associated with it directly, and that the memory associated with
it is automatically cleaned up when the connector is.

This also helps to highlight a problem mentioned by
Forest Bond <forest@alittletooquiet.net> here:

http://lists.freedesktop.org/archives/plymouth/2010-June/000369.html

Namely, we've been naïvely treating the first available mode in
the connector object as the active mode.  While this is true
most of the time, it doesn't hold true if the user overrides the
mode on the kernel command line.
src/plugins/renderers/drm/plugin.c