compositor: Fix default transforms when output section declared
authorDaniel Stone <daniels@collabora.com>
Mon, 25 Nov 2019 23:35:36 +0000 (23:35 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 6 Mar 2020 21:47:51 +0000 (21:47 +0000)
commit31af69d8684e524aba88e06ed75e8d89ba64bf53
treef7dc6d63ac870a779f436ff0e36b2bb67eb30db3
parent467e6b98831f76c066c10dfb9d8a8688307feea6
compositor: Fix default transforms when output section declared

Regardless of the default transform passed in, weston_parse_transform
would always return 'normal' if there was an output section. This is
because, if a section was declared for that output, it would ask
weston_config for the transform, with the default being 'normal'.

Fix it so we return the passed-in default transform when we have a
matching output section without a transform key. If the transform is
declared but invalid, we can remove the line resetting to the default
transform, because we've already set the default transform up top.

Signed-off-by: Daniel Stone <daniels@collabora.com>
compositor/main.c