diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2009-05-12 13:24:13 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2009-05-12 13:24:13 +0000 |
commit | c58aaee55f809106fdcb6cc31bfac1e77dcdd88c (patch) | |
tree | 9598847165da89d09ca464a933737e0ba9205b89 /firmware | |
parent | b1d03ccee7066d7e8e218b7cafcd85b17f5549d8 (diff) |
Sansa Clip : remove unused variable xoffset from lcd driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20920 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c index 0689779af0..4669abdf7d 100644 --- a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c +++ b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c @@ -120,7 +120,6 @@ void lcd_write_data(const fb_data* p_bytes, int count) /** globals **/ -static int xoffset; /* needed for flip */ static bool display_on; /* used by lcd_enable */ /*** hardware configuration ***/ @@ -266,8 +265,8 @@ void lcd_blit_mono(const unsigned char *data, int x, int by, int width, while (bheight--) { lcd_write_command (LCD_CNTL_PAGE | (by++ & 0xf)); - lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2+xoffset)>>4) & 0xf)); - lcd_write_command (LCD_CNTL_LOWCOL | ((x+2+xoffset) & 0xf)); + lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2)>>4) & 0xf)); + lcd_write_command (LCD_CNTL_LOWCOL | ((x+2) & 0xf)); lcd_write_data(data, width); data += stride; @@ -290,8 +289,8 @@ void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases, while (bheight--) { lcd_write_command (LCD_CNTL_PAGE | (by++ & 0xf)); - lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2+xoffset)>>4) & 0xf)); - lcd_write_command (LCD_CNTL_LOWCOL | ((x+2+xoffset) & 0xf)); + lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2)>>4) & 0xf)); + lcd_write_command (LCD_CNTL_LOWCOL | ((x+2) & 0xf)); lcd_grey_data(values, phases, width); @@ -314,8 +313,8 @@ void lcd_update(void) for (y = 0; y < LCD_FBHEIGHT; y++) { lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); - lcd_write_command (LCD_CNTL_HIGHCOL | (((xoffset+2) >> 4) & 0xf)); - lcd_write_command (LCD_CNTL_LOWCOL | ((xoffset+2) & 0xf)); + lcd_write_command (LCD_CNTL_HIGHCOL | ((2 >> 4) & 0xf)); + lcd_write_command (LCD_CNTL_LOWCOL | (2 & 0xf)); lcd_write_data (lcd_framebuffer[y], LCD_WIDTH); } @@ -345,8 +344,8 @@ void lcd_update_rect(int x, int y, int width, int height) for (; y <= ymax; y++) { lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); - lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2+xoffset) >> 4) & 0xf)); - lcd_write_command (LCD_CNTL_LOWCOL | ((x+2+xoffset) & 0xf)); + lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2) >> 4) & 0xf)); + lcd_write_command (LCD_CNTL_LOWCOL | ((x+2) & 0xf)); lcd_write_data (&lcd_framebuffer[y][x], width); } |