From 9a47193bcdf64a9d8879d2dcfc25c12db2e5493b Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Sat, 4 Nov 2017 14:06:41 +0800 Subject: [PATCH] =?UTF-8?q?[gui]=E8=A7=A3=E5=86=B3=E4=B8=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8fastlz=E5=8C=85=E6=97=B6,GUI=E8=A7=A3=E7=A0=81fastlz?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E7=9A=84hdc=E6=A0=BC=E5=BC=8F=E5=9B=BE?= =?UTF-8?q?=E7=89=87,=E7=B3=BB=E7=BB=9F=E4=BC=9A=E5=AE=95=E6=9C=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/gui/src/image_hdc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/gui/src/image_hdc.c b/components/gui/src/image_hdc.c index b82a10625..b8563c588 100644 --- a/components/gui/src/image_hdc.c +++ b/components/gui/src/image_hdc.c @@ -128,7 +128,8 @@ static rt_bool_t rtgui_image_hdc_load(struct rtgui_image *image, struct rtgui_fi { if (header[3] == 2) { -#if 0 /* TODO: add HDC with fastlz compressed */ +#ifdef PKG_USING_FASTLZ + /* TODO: add HDC with fastlz compressed */ int data_length, dec_length; rt_uint8_t *data; @@ -173,6 +174,9 @@ static rt_bool_t rtgui_image_hdc_load(struct rtgui_image *image, struct rtgui_fi } hdc->pixel_offset = 0; rtgui_free(data); +#else + hdc->pixels = RT_NULL; + return RT_FALSE; #endif } else