summaryrefslogtreecommitdiff
path: root/firmware/export/lcd-remote.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-29 01:39:50 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-29 01:39:50 +0000
commit576908d36a58d51ee880791418a32cef25b49aba (patch)
treeda2e34886085ca15de28d1b7226064be2906232b /firmware/export/lcd-remote.h
parent7e11acbce9b9a63c28ded055d02301175391e027 (diff)
downloadrockbox-576908d36a58d51ee880791418a32cef25b49aba.tar.gz
rockbox-576908d36a58d51ee880791418a32cef25b49aba.zip
Third part of graphics api rework. Some small but effective optimisations. Ported remote lcd driver to new api. Preparations for including the low-level functions in the plugin api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6907 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/lcd-remote.h')
-rw-r--r--firmware/export/lcd-remote.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h
index c5793eda93..17025a7421 100644
--- a/firmware/export/lcd-remote.h
+++ b/firmware/export/lcd-remote.h
@@ -26,9 +26,9 @@
26 26
27#ifdef HAVE_REMOTE_LCD 27#ifdef HAVE_REMOTE_LCD
28 28
29#define REMOTE_DRAW_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] |= (1<<((y)&7)) 29#define REMOTE_DRAW_PIXEL(x,y) lcd_remote_framebuffer[(y)>>3][(x)] |= (1<<((y)&7))
30#define REMOTE_CLEAR_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] &= ~(1<<((y)&7)) 30#define REMOTE_CLEAR_PIXEL(x,y) lcd_remote_framebuffer[(y)>>3][(x)] &= ~(1<<((y)&7))
31#define REMOTE_INVERT_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] ^= (1<<((y)&7)) 31#define REMOTE_INVERT_PIXEL(x,y) lcd_remote_framebuffer[(y)>>3][(x)] ^= (1<<((y)&7))
32 32
33#define STYLE_DEFAULT 0 33#define STYLE_DEFAULT 0
34#define STYLE_INVERT 1 34#define STYLE_INVERT 1
@@ -48,11 +48,11 @@ extern void lcd_remote_stop_scroll(void);
48extern void lcd_remote_scroll_speed(int speed); 48extern void lcd_remote_scroll_speed(int speed);
49extern void lcd_remote_scroll_delay(int ms); 49extern void lcd_remote_scroll_delay(int ms);
50extern void lcd_remote_puts_scroll(int x, int y, const unsigned char* string); 50extern void lcd_remote_puts_scroll(int x, int y, const unsigned char* string);
51extern void lcd_remote_puts_scroll_style(int x, int y, const unsigned char* string, 51extern void lcd_remote_puts_scroll_style(int x, int y,
52 int style); 52 const unsigned char* string, int style);
53 53
54extern void lcd_remote_update(void); 54extern void lcd_remote_update(void);
55extern void lcd_remote_update_rect(int x_start, int y, int width, int height); 55extern void lcd_remote_update_rect(int x, int y, int width, int height);
56 56
57/* Memory copy of display bitmap */ 57/* Memory copy of display bitmap */
58extern unsigned char lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDTH]; 58extern unsigned char lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDTH];
@@ -60,23 +60,28 @@ extern unsigned char lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDT
60extern void lcd_remote_set_invert_display(bool yesno); 60extern void lcd_remote_set_invert_display(bool yesno);
61extern void lcd_remote_set_flip(bool yesno); 61extern void lcd_remote_set_flip(bool yesno);
62extern void lcd_remote_roll(int pixels); 62extern void lcd_remote_roll(int pixels);
63
64extern void lcd_remote_set_drawmode(int mode);
65extern int lcd_remote_get_drawmode(void);
63extern void lcd_remote_setmargins(int xmargin, int ymargin); 66extern void lcd_remote_setmargins(int xmargin, int ymargin);
64extern int lcd_remote_getxmargin(void); 67extern int lcd_remote_getxmargin(void);
65extern int lcd_remote_getymargin(void); 68extern int lcd_remote_getymargin(void);
66extern void lcd_remote_setfont(int font); 69extern void lcd_remote_setfont(int font);
67extern int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h); 70extern int lcd_remote_getstringsize(const unsigned char *str, int *w, int *h);
71
68extern void lcd_remote_drawpixel(int x, int y); 72extern void lcd_remote_drawpixel(int x, int y);
69extern void lcd_remote_clearpixel(int x, int y);
70extern void lcd_remote_invertpixel(int x, int y);
71extern void lcd_remote_drawline(int x1, int y1, int x2, int y2); 73extern void lcd_remote_drawline(int x1, int y1, int x2, int y2);
72extern void lcd_remote_clearline(int x1, int y1, int x2, int y2); 74extern void lcd_remote_hline(int x1, int x2, int y);
73extern void lcd_remote_drawrect(int x, int y, int nx, int ny); 75extern void lcd_remote_vline(int x, int y1, int y2);
74extern void lcd_remote_clearrect(int x, int y, int nx, int ny); 76extern void lcd_remote_drawrect(int x, int y, int width, int height);
75extern void lcd_remote_fillrect(int x, int y, int nx, int ny); 77extern void lcd_remote_fillrect(int x, int y, int width, int height);
76extern void lcd_remote_invertrect(int x, int y, int nx, int ny); 78extern void lcd_remote_bitmap_part(const unsigned char *src, int src_x,
79 int src_y, int stride, int x, int y,
80 int width, int height);
77extern void lcd_remote_bitmap(const unsigned char *src, int x, int y, 81extern void lcd_remote_bitmap(const unsigned char *src, int x, int y,
78 int nx, int ny, bool clear); 82 int width, int height);
79extern void lcd_remote_putsxy(int x, int y, const unsigned char *string); 83extern void lcd_remote_putsxy(int x, int y, const unsigned char *string);
84
80extern void lcd_remote_invertscroll(int x, int y); 85extern void lcd_remote_invertscroll(int x, int y);
81extern void lcd_remote_bidir_scroll(int threshold); 86extern void lcd_remote_bidir_scroll(int threshold);
82extern void lcd_remote_scroll_step(int pixels); 87extern void lcd_remote_scroll_step(int pixels);