summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-05-12 13:24:13 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-05-12 13:24:13 +0000
commitc58aaee55f809106fdcb6cc31bfac1e77dcdd88c (patch)
tree9598847165da89d09ca464a933737e0ba9205b89 /firmware/target/arm
parentb1d03ccee7066d7e8e218b7cafcd85b17f5549d8 (diff)
downloadrockbox-c58aaee55f809106fdcb6cc31bfac1e77dcdd88c.tar.gz
rockbox-c58aaee55f809106fdcb6cc31bfac1e77dcdd88c.zip
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/target/arm')
-rw-r--r--firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c17
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)
120 120
121/** globals **/ 121/** globals **/
122 122
123static int xoffset; /* needed for flip */
124static bool display_on; /* used by lcd_enable */ 123static bool display_on; /* used by lcd_enable */
125 124
126/*** hardware configuration ***/ 125/*** hardware configuration ***/
@@ -266,8 +265,8 @@ void lcd_blit_mono(const unsigned char *data, int x, int by, int width,
266 while (bheight--) 265 while (bheight--)
267 { 266 {
268 lcd_write_command (LCD_CNTL_PAGE | (by++ & 0xf)); 267 lcd_write_command (LCD_CNTL_PAGE | (by++ & 0xf));
269 lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2+xoffset)>>4) & 0xf)); 268 lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2)>>4) & 0xf));
270 lcd_write_command (LCD_CNTL_LOWCOL | ((x+2+xoffset) & 0xf)); 269 lcd_write_command (LCD_CNTL_LOWCOL | ((x+2) & 0xf));
271 270
272 lcd_write_data(data, width); 271 lcd_write_data(data, width);
273 data += stride; 272 data += stride;
@@ -290,8 +289,8 @@ void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases,
290 while (bheight--) 289 while (bheight--)
291 { 290 {
292 lcd_write_command (LCD_CNTL_PAGE | (by++ & 0xf)); 291 lcd_write_command (LCD_CNTL_PAGE | (by++ & 0xf));
293 lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2+xoffset)>>4) & 0xf)); 292 lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2)>>4) & 0xf));
294 lcd_write_command (LCD_CNTL_LOWCOL | ((x+2+xoffset) & 0xf)); 293 lcd_write_command (LCD_CNTL_LOWCOL | ((x+2) & 0xf));
295 294
296 lcd_grey_data(values, phases, width); 295 lcd_grey_data(values, phases, width);
297 296
@@ -314,8 +313,8 @@ void lcd_update(void)
314 for (y = 0; y < LCD_FBHEIGHT; y++) 313 for (y = 0; y < LCD_FBHEIGHT; y++)
315 { 314 {
316 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); 315 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf));
317 lcd_write_command (LCD_CNTL_HIGHCOL | (((xoffset+2) >> 4) & 0xf)); 316 lcd_write_command (LCD_CNTL_HIGHCOL | ((2 >> 4) & 0xf));
318 lcd_write_command (LCD_CNTL_LOWCOL | ((xoffset+2) & 0xf)); 317 lcd_write_command (LCD_CNTL_LOWCOL | (2 & 0xf));
319 318
320 lcd_write_data (lcd_framebuffer[y], LCD_WIDTH); 319 lcd_write_data (lcd_framebuffer[y], LCD_WIDTH);
321 } 320 }
@@ -345,8 +344,8 @@ void lcd_update_rect(int x, int y, int width, int height)
345 for (; y <= ymax; y++) 344 for (; y <= ymax; y++)
346 { 345 {
347 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); 346 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf));
348 lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2+xoffset) >> 4) & 0xf)); 347 lcd_write_command (LCD_CNTL_HIGHCOL | (((x+2) >> 4) & 0xf));
349 lcd_write_command (LCD_CNTL_LOWCOL | ((x+2+xoffset) & 0xf)); 348 lcd_write_command (LCD_CNTL_LOWCOL | ((x+2) & 0xf));
350 349
351 lcd_write_data (&lcd_framebuffer[y][x], width); 350 lcd_write_data (&lcd_framebuffer[y][x], width);
352 } 351 }