summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-10-18 15:24:16 +0300
committerAnatolij Gustschin <agust@denx.de>2022-10-30 22:07:16 +0300
commit988d19dd5bd38181f3bfcafb2c159f367e39d627 (patch)
tree38641ca519e1611f55191c4769ce4d917c8fb0a9 /cmd
parent7fcb30c0e023fcdce59eb28a824faac5d527d99d (diff)
downloadu-boot-988d19dd5bd38181f3bfcafb2c159f367e39d627.tar.xz
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')
-rw-r--r--cmd/bmp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/bmp.c b/cmd/bmp.c
index 45f4c1296d..d72a826ae7 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);