summaryrefslogtreecommitdiff
path: root/components/rtgui/server/mouse.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-10-08 09:03:58 +0000
committer[email protected] <[email protected]>2012-10-08 09:03:58 +0000
commitb4a2beffba3d684ff484ff74a2db998ecaa23161 (patch)
treebf0d194d091536642e15c47bac1bd336a7874170 /components/rtgui/server/mouse.c
parent15b3271d5d3908d1c7b46dd1a9f3f64a65b5c261 (diff)
fixed two compiling error while defined RTGUI_USING_MOUSE_CURSOR
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2324 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/server/mouse.c')
-rw-r--r--components/rtgui/server/mouse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/rtgui/server/mouse.c b/components/rtgui/server/mouse.c
index 8bd399dbb7..a6c71ed7ef 100644
--- a/components/rtgui/server/mouse.c
+++ b/components/rtgui/server/mouse.c
@@ -193,7 +193,7 @@ void rtgui_mouse_fini(void)
#ifdef RTGUI_USING_MOUSE_CURSOR
rt_mutex_detach(&cursor_mutex);
rtgui_image_destroy(_rtgui_cursor->cursor_image);
- rtgui_free(_rtgui_cursor->rtgui_malloc);
+ rtgui_free(_rtgui_cursor->cursor_saved);
#endif
rtgui_free(_rtgui_cursor);
@@ -346,7 +346,7 @@ static void rtgui_cursor_save()
rt_base_t idx, height, cursor_pitch;
rt_uint8_t *cursor_ptr, *fb_ptr;
- fb_ptr = _driver_get_default_framebuffer() + _rtgui_cursor->cy * _rtgui_cursor->screen_pitch +
+ fb_ptr = rtgui_graphic_driver_get_default_framebuffer() + _rtgui_cursor->cy * _rtgui_cursor->screen_pitch +
_rtgui_cursor->cx * _rtgui_cursor->bpp;
cursor_ptr = _rtgui_cursor->cursor_saved;