summaryrefslogtreecommitdiff
path: root/components/rtgui/include
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-06-06 09:10:13 +0000
committer[email protected] <[email protected]>2011-06-06 09:10:13 +0000
commit80da4b977588119a2e66566fb9a2e7a0c3588a62 (patch)
tree6d0f4b18be36779a0f6fdd9bfe83913026064f10 /components/rtgui/include
parent5284d6d52e39faefcf96dedad6695bb46d2d5579 (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/include')
-rw-r--r--components/rtgui/include/rtgui/driver.h34
1 files changed, 1 insertions, 33 deletions
diff --git a/components/rtgui/include/rtgui/driver.h b/components/rtgui/include/rtgui/driver.h
index 4cc187fb2d..1f929d2b02 100644
--- a/components/rtgui/include/rtgui/driver.h
+++ b/components/rtgui/include/rtgui/driver.h
@@ -17,38 +17,6 @@
#include <rtgui/list.h>
#include <rtgui/color.h>
-#define LCD_RECT_UPDATE 0
-#define LCD_ON 1
-#define LCD_OFF 2
-#define LCD_GET_INFO 3
-#define LCD_MODE_SET 4
-
-enum
-{
- PIXEL_FORMAT_MONO = 0,
- PIXEL_FORMAT_GRAY4,
- PIXEL_FORMAT_GRAY16,
- PIXEL_FORMAT_RGB332,
- PIXEL_FORMAT_RGB444,
- PIXEL_FORMAT_RGB565,
- PIXEL_FORMAT_RGB565P,
- PIXEL_FORMAT_RGB666,
- PIXEL_FORMAT_RGB888,
- PIXEL_FORMAT_ARGB888
-};
-#define PIXEL_POSITION(x, y) ((x << 16) | y)
-
-struct rt_lcd_info
-{
- rt_uint8_t pixel_format;
- rt_uint8_t byte_per_pixel;
-
- rt_uint16_t width;
- rt_uint16_t height;
-
- rt_uint8_t *framebuffer;
-};
-
struct rtgui_graphic_driver_ops
{
/* set and get pixel in (x, y) */
@@ -66,7 +34,7 @@ struct rtgui_graphic_driver
{
/* pixel format and byte per pixel */
rt_uint8_t pixel_format;
- rt_uint8_t byte_per_pixel;
+ rt_uint8_t bits_per_pixel;
rt_uint16_t pitch;
/* screen width and height */