From 2d98c0e7be8e0803de4b4e8e9ba03635bcef91c8 Mon Sep 17 00:00:00 2001 From: yangfasheng Date: Tue, 12 Dec 2017 19:46:38 +0800 Subject: gui 引擎代码更新; MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/gui/src/rtgui_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/gui/src/rtgui_driver.c') diff --git a/components/gui/src/rtgui_driver.c b/components/gui/src/rtgui_driver.c index fd1523b9a7..fd3cae7cf0 100644 --- a/components/gui/src/rtgui_driver.c +++ b/components/gui/src/rtgui_driver.c @@ -124,7 +124,7 @@ rtgui_graphic_driver_get_rect_buffer(const struct rtgui_graphic_driver *driver, while (h--) { - rt_memcpy(dst, pixel, buffer->pitch); + memcpy(dst, pixel, buffer->pitch); dst += buffer->pitch; pixel += driver->pitch; @@ -419,7 +419,7 @@ static void framebuffer_draw_raw_hline(rt_uint8_t *pixels, int x1, int x2, int y drv = rtgui_graphic_get_device(); dst = GET_PIXEL(drv, x1, y, rt_uint8_t); - rt_memcpy(dst, pixels, + memcpy(dst, pixels, (x2 - x1) * _UI_BITBYTES(drv->bits_per_pixel)); } -- cgit v1.3.1