Merge pull request #1106 from BernardXiong/master

[GUI Engine] fix TRANSPARENT issue
This commit is contained in:
Bernard Xiong 2017-12-14 13:11:52 +08:00 committed by GitHub
commit c77cebc4c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -47,13 +47,13 @@ choice
default RTGUI_IMAGE_JPEG_NONE default RTGUI_IMAGE_JPEG_NONE
config RTGUI_IMAGE_JPEG_NONE config RTGUI_IMAGE_JPEG_NONE
bool "No PNG image format" bool "No"
config RTGUI_IMAGE_JPEG config RTGUI_IMAGE_JPEG
bool "Use libjpeg" bool "with libjpeg"
config RTGUI_IMAGE_TJPGD config RTGUI_IMAGE_TJPGD
bool "Use TJPGD" bool "with TJpgDec(Tiny JPEG Decompressor)"
endchoice endchoice
choice choice
@ -61,13 +61,13 @@ choice
default RTGUI_IMAGE_LODEPNG default RTGUI_IMAGE_LODEPNG
config RTGUI_IMAGE_PNG_NONE config RTGUI_IMAGE_PNG_NONE
bool "No PNG image format" bool "No"
config RTGUI_IMAGE_PNG config RTGUI_IMAGE_PNG
bool "Use libpng" bool "with libpng"
config RTGUI_IMAGE_LODEPNG config RTGUI_IMAGE_LODEPNG
bool "Use lodepng" bool "with LodePNG"
endchoice endchoice
config RTGUI_IMAGE_BMP config RTGUI_IMAGE_BMP
@ -76,10 +76,10 @@ config RTGUI_IMAGE_BMP
config RTGUI_IMAGE_CONTAINER config RTGUI_IMAGE_CONTAINER
bool "Use image container" bool "Use image container"
default n default y
config RTGUI_USING_DEMO config RTGUI_USING_DEMO
bool "Display an example of GUI" bool "Enable the example of UI Engine"
default n default n
endif endif

View File

@ -72,8 +72,8 @@ extern const rtgui_color_t default_background;
#ifdef TRANSPARENT #ifdef TRANSPARENT
#undef TRANSPARENT #undef TRANSPARENT
#define TRANSPARENT RTGUI_ARGB(0, 0, 0, 0)
#endif #endif
#define TRANSPARENT RTGUI_ARGB(0, 0, 0, 0)
extern const rtgui_color_t red; extern const rtgui_color_t red;
extern const rtgui_color_t green; extern const rtgui_color_t green;