diff options
| author | yangfasheng <[email protected]> | 2017-12-12 19:46:38 +0800 |
|---|---|---|
| committer | yangfasheng <[email protected]> | 2017-12-12 19:46:38 +0800 |
| commit | 2d98c0e7be8e0803de4b4e8e9ba03635bcef91c8 (patch) | |
| tree | 2369b56b2cb936de281b8e8b335da94828298af3 /components/gui/src/rtgui_driver.c | |
| parent | 44e17aa2772a48697604ba1122da4a0bb9015414 (diff) | |
gui 引擎代码更新;
Diffstat (limited to 'components/gui/src/rtgui_driver.c')
| -rw-r--r-- | components/gui/src/rtgui_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } |
