summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-07-19 21:46:37 +0000
committerJens Arnold <amiconn@rockbox.org>2004-07-19 21:46:37 +0000
commit638dd6786a75e5d3e87a9e04f80138d80665f230 (patch)
treeef376ff7e32e88913f833344d33b9810a023187e /firmware
parent5846aab6542104003bf03c29851bc3c12bc8da7a (diff)
downloadrockbox-638dd6786a75e5d3e87a9e04f80138d80665f230.tar.gz
rockbox-638dd6786a75e5d3e87a9e04f80138d80665f230.zip
Const'ed the logo, the bitmaps and the credits (optimization for running from ROM)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4896 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-recorder.c11
-rw-r--r--firmware/export/lcd.h4
2 files changed, 8 insertions, 7 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index cf3c7615e1..3d3763ca50 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -371,7 +371,7 @@ void lcd_puts_style(int x, int y, unsigned char *str, int style)
371} 371}
372 372
373/* put a string at a given pixel position, skipping first ofs pixel columns */ 373/* put a string at a given pixel position, skipping first ofs pixel columns */
374static void lcd_putsxyofs(int x, int y, int ofs, unsigned char *str) 374static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str)
375{ 375{
376 int ch; 376 int ch;
377 struct font* pf = font_get(curfont); 377 struct font* pf = font_get(curfont);
@@ -428,7 +428,7 @@ static void lcd_putsxyofs(int x, int y, int ofs, unsigned char *str)
428} 428}
429 429
430/* put a string at a given pixel position */ 430/* put a string at a given pixel position */
431void lcd_putsxy(int x, int y, unsigned char *str) 431void lcd_putsxy(int x, int y, const unsigned char *str)
432{ 432{
433 lcd_putsxyofs(x, y, 0, str); 433 lcd_putsxyofs(x, y, 0, str);
434} 434}
@@ -450,12 +450,13 @@ void lcd_putsxy(int x, int y, unsigned char *str)
450 * Draw a bitmap at (x, y), size (nx, ny) 450 * Draw a bitmap at (x, y), size (nx, ny)
451 * if 'clear' is true, clear destination area first 451 * if 'clear' is true, clear destination area first
452 */ 452 */
453void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, 453void lcd_bitmap (const unsigned char *src, int x, int y, int nx, int ny,
454 bool clear) __attribute__ ((section (".icode"))); 454 bool clear) __attribute__ ((section (".icode")));
455void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, 455void lcd_bitmap (const unsigned char *src, int x, int y, int nx, int ny,
456 bool clear) 456 bool clear)
457{ 457{
458 unsigned char *src_col, *dst, *dst_col; 458 const unsigned char *src_col;
459 unsigned char *dst, *dst_col;
459 unsigned int data, mask1, mask2, mask3, mask4; 460 unsigned int data, mask1, mask2, mask3, mask4;
460 int stride, shift; 461 int stride, shift;
461 462
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 20023bf1c6..1a408d448c 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -123,7 +123,7 @@ extern unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH];
123extern void lcd_setmargins(int xmargin, int ymargin); 123extern void lcd_setmargins(int xmargin, int ymargin);
124extern int lcd_getxmargin(void); 124extern int lcd_getxmargin(void);
125extern int lcd_getymargin(void); 125extern int lcd_getymargin(void);
126extern void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, 126extern void lcd_bitmap (const unsigned char *src, int x, int y, int nx, int ny,
127 bool clear); 127 bool clear);
128extern void lcd_clearrect (int x, int y, int nx, int ny); 128extern void lcd_clearrect (int x, int y, int nx, int ny);
129extern void lcd_fillrect (int x, int y, int nx, int ny); 129extern void lcd_fillrect (int x, int y, int nx, int ny);
@@ -141,7 +141,7 @@ extern void lcd_set_flip(bool yesno);
141extern void lcd_bidir_scroll(int threshold); 141extern void lcd_bidir_scroll(int threshold);
142extern void lcd_scroll_step(int pixels); 142extern void lcd_scroll_step(int pixels);
143extern void lcd_setfont(int font); 143extern void lcd_setfont(int font);
144extern void lcd_putsxy(int x, int y, unsigned char *string); 144extern void lcd_putsxy(int x, int y, const unsigned char *string);
145extern int lcd_getstringsize(unsigned char *str, int *w, int *h); 145extern int lcd_getstringsize(unsigned char *str, int *w, int *h);
146extern int lcd_getstringsize(unsigned char *str, int *w, int *h); 146extern int lcd_getstringsize(unsigned char *str, int *w, int *h);
147 147