diff options
author | Simon Glass | 2022-10-18 06:24:16 -0600 |
---|---|---|
committer | Anatolij Gustschin | 2022-10-30 20:07:16 +0100 |
commit | 988d19dd5bd38181f3bfcafb2c159f367e39d627 (patch) | |
tree | 38641ca519e1611f55191c4769ce4d917c8fb0a9 /cmd/bmp.c | |
parent | 7fcb30c0e023fcdce59eb28a824faac5d527d99d (diff) |
video: Split SPLASH_SCREEN_ALIGN from bmp command
The bmp command already has a way to centre the image. Using this CONFIG
option to also centre it makes it impossible to control where images are
placed on the screen. Drop the extra check.
Simplify the Kconfig file we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/bmp.c')
-rw-r--r-- | cmd/bmp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/bmp.c b/cmd/bmp.c index 45f4c1296de..d72a826ae74 100644 --- a/cmd/bmp.c +++ b/cmd/bmp.c @@ -259,9 +259,7 @@ int bmp_display(ulong addr, int x, int y) if (!ret) { bool align = false; - if (CONFIG_IS_ENABLED(SPLASH_SCREEN_ALIGN) || - x == BMP_ALIGN_CENTER || - y == BMP_ALIGN_CENTER) + if (x == BMP_ALIGN_CENTER || y == BMP_ALIGN_CENTER) align = true; ret = video_bmp_display(dev, addr, x, y, align); |