summaryrefslogtreecommitdiff
path: root/rtgui/common/rtgui_theme.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-12-01 15:27:22 +0000
committerbernard.xiong <[email protected]>2009-12-01 15:27:22 +0000
commit4edb72147bd84b78b435d15cdcf304442f71ec13 (patch)
tree033ab92882b066b8d1f2a905a1568212d418f550 /rtgui/common/rtgui_theme.c
parentde98f5dbcdfa99f330a50e23f237151bb583f415 (diff)
add embedded hdc image support
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@184 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/common/rtgui_theme.c')
-rw-r--r--rtgui/common/rtgui_theme.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rtgui/common/rtgui_theme.c b/rtgui/common/rtgui_theme.c
index b7d34966c4..ef0046953f 100644
--- a/rtgui/common/rtgui_theme.c
+++ b/rtgui/common/rtgui_theme.c
@@ -189,9 +189,9 @@ static rtgui_image_t* close_unpressed = RT_NULL;
void rtgui_system_theme_init()
{
close_pressed = rtgui_image_create_from_mem("xpm",
- (const rt_uint8_t*)close_pressed_xpm, sizeof(close_pressed_xpm));
+ (const rt_uint8_t*)close_pressed_xpm, sizeof(close_pressed_xpm), RT_TRUE);
close_unpressed = rtgui_image_create_from_mem("xpm",
- (const rt_uint8_t*)close_unpressed_xpm, sizeof(close_unpressed_xpm));
+ (const rt_uint8_t*)close_unpressed_xpm, sizeof(close_unpressed_xpm), RT_TRUE);
}
/* window drawing */
@@ -203,10 +203,10 @@ void rtgui_theme_draw_win(struct rtgui_topwin* win)
/* init close box image */
if (close_pressed == RT_NULL)
close_pressed = rtgui_image_create_from_mem("xpm",
- (const rt_uint8_t*)close_pressed_xpm, sizeof(close_pressed_xpm));
+ (const rt_uint8_t*)close_pressed_xpm, sizeof(close_pressed_xpm), RT_TRUE);
if (close_unpressed == RT_NULL)
close_unpressed = rtgui_image_create_from_mem("xpm",
- (const rt_uint8_t*)close_unpressed_xpm, sizeof(close_unpressed_xpm));
+ (const rt_uint8_t*)close_unpressed_xpm, sizeof(close_unpressed_xpm), RT_TRUE);
/* begin drawing */
dc = rtgui_dc_begin_drawing(RTGUI_WIDGET(win->title));