mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-03 18:23:34 +00:00
video: use BMP_ALIGN_CENTER define from splash.h
Drop BMP_ALIGN_CENTER define in lcd.c and video_bmp.c as it is already defined by splash.h. Include splash.h in bmp code. Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
b0fcedb7ad
commit
96d82f6c86
2 changed files with 1 additions and 3 deletions
|
@ -381,7 +381,6 @@ static inline void lcd_logo_plot(int x, int y) {}
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_BMP) || defined(CONFIG_SPLASH_SCREEN)
|
#if defined(CONFIG_CMD_BMP) || defined(CONFIG_SPLASH_SCREEN)
|
||||||
#ifdef CONFIG_SPLASH_SCREEN_ALIGN
|
#ifdef CONFIG_SPLASH_SCREEN_ALIGN
|
||||||
#define BMP_ALIGN_CENTER 0x7FFF
|
|
||||||
|
|
||||||
static void splash_align_axis(int *axis, unsigned long panel_size,
|
static void splash_align_axis(int *axis, unsigned long panel_size,
|
||||||
unsigned long picture_size)
|
unsigned long picture_size)
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include <bmp_layout.h>
|
#include <bmp_layout.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <mapmem.h>
|
#include <mapmem.h>
|
||||||
|
#include <splash.h>
|
||||||
#include <video.h>
|
#include <video.h>
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
#include <asm/unaligned.h>
|
#include <asm/unaligned.h>
|
||||||
|
@ -140,8 +141,6 @@ __weak void fb_put_word(uchar **fb, uchar **from)
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_BMP_16BPP */
|
#endif /* CONFIG_BMP_16BPP */
|
||||||
|
|
||||||
#define BMP_ALIGN_CENTER 0x7fff
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* video_splash_align_axis() - Align a single coordinate
|
* video_splash_align_axis() - Align a single coordinate
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue