diff options
| author | JasonJiaJie <[email protected]> | 2017-12-14 09:12:01 +0800 |
|---|---|---|
| committer | JasonJiaJie <[email protected]> | 2017-12-14 09:12:01 +0800 |
| commit | a2a8e2eee02e30803d813eafdde21a53459c5af9 (patch) | |
| tree | 48c9298e79df107ebbbf532091853c929a3944fd /components/gui/src/rtgui_driver.c | |
| parent | bd4c90f61948810278b774a4ba1ad3440c7d1460 (diff) | |
| parent | b0f4ae246a7a0d958777e11ad2392f22f20a99e6 (diff) | |
Merge remote-tracking branch 'upstream/master'
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)); } |
