freemyipod r261 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r260‎ | r261 | r262 >
Date:13:42, 14 November 2010
Author:theseven
Status:new
Tags:
Comment:
emBIOS: Fix a leftover hardwired LCD console background color value
Modified paths:
  • /embios/trunk/lcdconsole.c (modified) (history)

Diff [purge]

Index: embios/trunk/lcdconsole.c
@@ -76,9 +76,9 @@
7777 {
7878 int offset = current_row - LCDCONSOLE_ROWS + 1;
7979 memcpy(&framebuf[LINEBYTES * OFFSETY], &framebuf[LINEBYTES * OFFSETY + ROWBYTES * offset],
80 - ROWBYTES * (LCDCONSOLE_ROWS - offset));
 80+ ROWBYTES * (LCDCONSOLE_ROWS - offset));
8181 memset(&framebuf[LINEBYTES * OFFSETY + ROWBYTES * (LCDCONSOLE_ROWS - offset)],
82 - -1, ROWBYTES * offset);
 82+ LCDCONSOLE_BGCOLOR, ROWBYTES * offset);
8383 current_row = LCDCONSOLE_ROWS - 1;
8484 }
8585 renderchar(&framebuf[OFFSETBYTES + ROWBYTES * current_row + COLBYTES * current_col],