summaryrefslogtreecommitdiff
path: root/rtgui/common/dc_buffer.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-04-05 23:05:13 +0000
committerbernard.xiong <[email protected]>2010-04-05 23:05:13 +0000
commit9372599ff99f68de3f4e6eee79661393774c4898 (patch)
tree824b161a8462e638d1f6c95745741ceb794bb0ef /rtgui/common/dc_buffer.c
parent9f97b3404b6eea46643978f79284074db5d7e6e3 (diff)
support dc_buffer when small size is used; add freetype
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@579 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/common/dc_buffer.c')
-rw-r--r--rtgui/common/dc_buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rtgui/common/dc_buffer.c b/rtgui/common/dc_buffer.c
index 9c058015a8..ca2999db1a 100644
--- a/rtgui/common/dc_buffer.c
+++ b/rtgui/common/dc_buffer.c
@@ -16,7 +16,6 @@
#include <rtgui/color.h>
#include <rtgui/rtgui_system.h>
-#ifndef RTGUI_USING_SMALL_SIZE
struct rtgui_dc_buffer
{
struct rtgui_dc parent;
@@ -244,11 +243,14 @@ rt_inline void rtgui_blit_line_4(rtgui_color_t* color, rt_uint8_t* dest, int lin
rt_memcpy(dest, color, line * 4);
}
+/* blit a dc to a hardware dc */
static void rtgui_dc_buffer_blit(struct rtgui_dc* self, struct rtgui_point* dc_point, struct rtgui_dc* dest, rtgui_rect_t* rect)
{
struct rtgui_dc_buffer* dc = (struct rtgui_dc_buffer*)self;
struct rtgui_dc_hw* hw = (struct rtgui_dc_hw*)dest;
+ if (dc_point == RT_NULL) dc_point = &rtgui_empty_point;
+
if (dest->type == RTGUI_DC_HW)
{
register int index;
@@ -391,5 +393,4 @@ static void rtgui_dc_buffer_get_rect(struct rtgui_dc* self, rtgui_rect_t* rect)
rect->x2 = dc->width;
rect->y2 = dc->height;
}
-#endif