fbsplash: support configurable image position
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 29 Mar 2018 11:35:01 +0000 (13:35 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 29 Mar 2018 16:42:11 +0000 (18:42 +0200)
commita82fe671f5c7ff96ca4d4d813210d18e0b02c193
tree1a3575edf3de626a9271fa7c10d1fcdf800cb7a3
parent03fd7e06f854d385070a6fc9714f445727c359cd
fbsplash: support configurable image position

For some setups (E.G. for supporting different screen resolutions),
positioning the image somewhere else than the top left corner may be
interesting.

Add support for IMG_LEFT/IMG_TOP settings to specify the image location,
similar to how it is done for the progress bar.

function                                             old     new   delta
fbsplash_main                                        994    1038     +44
static.param_names                                    57      74     +17
packed_usage                                       32631   32647     +16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 77/0)               Total: 77 bytes

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/fbsplash.c