summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-16bit.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-11-17 00:37:16 +0000
committerJens Arnold <amiconn@rockbox.org>2005-11-17 00:37:16 +0000
commit5236ca98860a7698c0a768666da20f7418024706 (patch)
treed686d3a66fc2f4e82cca5f9d03d3a37c39e3472c /firmware/drivers/lcd-16bit.c
parentb0a4b3e2b0feb83c38203011bfd317ecfd48b0f1 (diff)
Moved some often-used parts of the LCD driver into IRAM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7921 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-16bit.c')
-rw-r--r--firmware/drivers/lcd-16bit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c
index 1aed98e5f6..83c6dc612c 100644
--- a/firmware/drivers/lcd-16bit.c
+++ b/firmware/drivers/lcd-16bit.c
@@ -37,8 +37,8 @@
/*** globals ***/
fb_data lcd_framebuffer[LCD_HEIGHT][LCD_WIDTH] __attribute__ ((aligned (4)));
-static unsigned fg_pattern = LCD_DEFAULT_FG;
-static unsigned bg_pattern = LCD_DEFAULT_BG;
+static unsigned fg_pattern IDATA_ATTR = LCD_DEFAULT_FG;
+static unsigned bg_pattern IDATA_ATTR = LCD_DEFAULT_BG;
static int drawmode = DRMODE_SOLID;
static int xmargin = 0;
static int ymargin = 0;
@@ -145,21 +145,25 @@ int lcd_getstringsize(const unsigned char *str, int *w, int *h)
/*** low-level drawing functions ***/
+static void setpixel(int x, int y) ICODE_ATTR;
static void setpixel(int x, int y)
{
lcd_framebuffer[y][x] = fg_pattern;
}
+static void clearpixel(int x, int y) ICODE_ATTR;
static void clearpixel(int x, int y)
{
lcd_framebuffer[y][x] = bg_pattern;
}
+static void flippixel(int x, int y) ICODE_ATTR;
static void flippixel(int x, int y)
{
lcd_framebuffer[y][x] = ~lcd_framebuffer[y][x];
}
+static void nopixel(int x, int y) ICODE_ATTR;
static void nopixel(int x, int y)
{
(void)x;