diff options
| author | [email protected] <[email protected]> | 2011-06-06 09:10:13 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-06 09:10:13 +0000 |
| commit | 80da4b977588119a2e66566fb9a2e7a0c3588a62 (patch) | |
| tree | 6d0f4b18be36779a0f6fdd9bfe83913026064f10 /components/rtgui/server/mouse.c | |
| parent | 5284d6d52e39faefcf96dedad6695bb46d2d5579 (diff) | |
change to graphic device.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1459 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/server/mouse.c')
| -rw-r--r-- | components/rtgui/server/mouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/rtgui/server/mouse.c b/components/rtgui/server/mouse.c index a28087cd0b..ff4ab0c2e5 100644 --- a/components/rtgui/server/mouse.c +++ b/components/rtgui/server/mouse.c @@ -139,7 +139,7 @@ void rtgui_mouse_init() #endif /* init cursor */ - _rtgui_cursor->bpp = gd->byte_per_pixel; + _rtgui_cursor->bpp = gd->bits_per_pixel/8; _rtgui_cursor->framebuffer = rtgui_graphic_driver_get_framebuffer(gd); _rtgui_cursor->screen_pitch = _rtgui_cursor->bpp * gd->width; |
