summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-12-11 10:38:41 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-12-11 10:38:41 +0000
commit2f9c4dfa39c2f99abf701f2068f23a883b0b1448 (patch)
treed8b066ddbc855a41603f521bcd7a28f6dca3d11e
parent43e8fbbb4acb7f654176adf8d9064796fff8f8fa (diff)
downloadrockbox-2f9c4dfa39c2f99abf701f2068f23a883b0b1448.tar.gz
rockbox-2f9c4dfa39c2f99abf701f2068f23a883b0b1448.zip
iPod nano 2G: Call lcd_update_rect() in lcd_update() instead of using an own implementation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28794 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c
index 3e87a55eda..195953979e 100644
--- a/firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c
+++ b/firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c
@@ -428,39 +428,7 @@ static inline void lcd_write_pixel(fb_data pixel)
428void lcd_update(void) ICODE_ATTR; 428void lcd_update(void) ICODE_ATTR;
429void lcd_update(void) 429void lcd_update(void)
430{ 430{
431 int x,y; 431 lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT);
432 fb_data* p = &lcd_framebuffer[0][0];
433
434 if (lcd_type==0) {
435 s5l_lcd_write_cmd_data(R_HORIZ_ADDR_START_POS, 0);
436 s5l_lcd_write_cmd_data(R_HORIZ_ADDR_END_POS, LCD_WIDTH-1);
437 s5l_lcd_write_cmd_data(R_VERT_ADDR_START_POS, 0);
438 s5l_lcd_write_cmd_data(R_VERT_ADDR_END_POS, LCD_HEIGHT-1);
439
440 s5l_lcd_write_cmd_data(R_HORIZ_GRAM_ADDR_SET, 0);
441 s5l_lcd_write_cmd_data(R_VERT_GRAM_ADDR_SET, 0);
442
443 s5l_lcd_write_cmd(0);
444 s5l_lcd_write_cmd(R_WRITE_DATA_TO_GRAM);
445 } else {
446 s5l_lcd_write_cmd(R_COLUMN_ADDR_SET);
447 s5l_lcd_write_wdata(0); /* Start column */
448 s5l_lcd_write_wdata(LCD_WIDTH-1); /* End column */
449
450 s5l_lcd_write_cmd(R_ROW_ADDR_SET);
451 s5l_lcd_write_wdata(0); /* Start row */
452 s5l_lcd_write_wdata(LCD_HEIGHT-1); /* End row */
453
454 s5l_lcd_write_cmd(R_MEMORY_WRITE);
455 }
456
457
458 /* Copy display bitmap to hardware */
459 for (y = 0; y < LCD_HEIGHT; y++) {
460 for (x = 0; x < LCD_WIDTH; x++) {
461 lcd_write_pixel(*(p++));
462 }
463 }
464} 432}
465 433
466/* Update a fraction of the display. */ 434/* Update a fraction of the display. */