diff options
author | Simon Glass <sjg@chromium.org> | 2022-10-18 06:24:16 -0600 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2022-10-30 20:07:16 +0100 |
commit | 988d19dd5bd38181f3bfcafb2c159f367e39d627 (patch) | |
tree | 38641ca519e1611f55191c4769ce4d917c8fb0a9 /cmd/bmp.c | |
parent | 7fcb30c0e023fcdce59eb28a824faac5d527d99d (diff) | |
download | u-boot-988d19dd5bd38181f3bfcafb2c159f367e39d627.tar.gz u-boot-988d19dd5bd38181f3bfcafb2c159f367e39d627.tar.bz2 u-boot-988d19dd5bd38181f3bfcafb2c159f367e39d627.zip |
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
@@ -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); |