update template

This commit is contained in:
lixianjing 2019-06-16 16:31:36 -07:00
parent af8eed8024
commit f1202872f4
3 changed files with 9 additions and 4 deletions

View File

@ -11,8 +11,13 @@ function gen() {
sed -e "s/{fmt}/$fmt/" -e "s/{FMT}/$FMT/" -e "s/{date}/$DATE/" template/lcd_mem_c.tmpl > lcd_mem_$fmt.c
}
if [ "$1" == "" ]; then
FMT="rgb565 bgr565 bgra5551 bgr888 bgra8888 rgba8888"
else
FMT="$1"
fi
#supproted formats: rgb565 bgr565 rgb888 bgr888 rgba8888 abgr8888 bgra8888 argb8888
for fmt in rgb565 bgr565 bgr888 bgra8888 rgba8888
for fmt in ${FMT}
do
gen $fmt
done

View File

@ -3,7 +3,7 @@
* Author: AWTK Develop Team
* Brief: {fmt} mem lcd.
*
* Copyright (c) 2018 - 2018 Guangzhou ZHIYUAN Electronics Co.,Ltd.
* Copyright (c) 2018 - 2019 Guangzhou ZHIYUAN Electronics Co.,Ltd.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -21,7 +21,7 @@
#define LCD_FORMAT BITMAP_FMT_{FMT}
#include "base/mem.h"
#include "tkc/mem.h"
#include "base/pixel.h"
#include "lcd/lcd_mem.h"

View File

@ -3,7 +3,7 @@
* Author: AWTK Develop Team
* Brief: {fmt} mem lcd.
*
* Copyright (c) 2018 - 2018 Guangzhou ZHIYUAN Electronics Co.,Ltd.
* Copyright (c) 2018 - 2019 Guangzhou ZHIYUAN Electronics Co.,Ltd.
*
* this program is distributed in the hope that it will be useful,
* but without any warranty; without even the implied warranty of