summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c6
-rw-r--r--firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c6
-rw-r--r--firmware/target/coldfire/iriver/h100/lcd-h100.c6
-rw-r--r--firmware/target/sh/archos/lcd-archos-bitmap.c6
4 files changed, 12 insertions, 12 deletions
diff --git a/firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c b/firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c
index ca4a01b52e..0aacd8af67 100644
--- a/firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c
+++ b/firmware/target/arm/iriver/ifp7xx/lcd-ifp7xx.c
@@ -169,7 +169,7 @@ void lcd_update(void)
169 int y; 169 int y;
170 170
171 /* Copy display bitmap to hardware */ 171 /* Copy display bitmap to hardware */
172 for (y = 0; y < LCD_HEIGHT/8; y++) 172 for (y = 0; y < LCD_FBHEIGHT; y++)
173 { 173 {
174 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); 174 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf));
175 lcd_write_command (LCD_CNTL_HIGHCOL); 175 lcd_write_command (LCD_CNTL_HIGHCOL);
@@ -193,8 +193,8 @@ void lcd_update_rect(int x, int y, int width, int height)
193 width = LCD_WIDTH - x; 193 width = LCD_WIDTH - x;
194 if (width <= 0) 194 if (width <= 0)
195 return; /* nothing left to do, 0 is harmful to lcd_write_data() */ 195 return; /* nothing left to do, 0 is harmful to lcd_write_data() */
196 if(ymax >= LCD_HEIGHT/8) 196 if(ymax >= LCD_FBHEIGHT)
197 ymax = LCD_HEIGHT/8-1; 197 ymax = LCD_FBHEIGHT-1;
198 198
199 /* Copy specified rectange bitmap to hardware */ 199 /* Copy specified rectange bitmap to hardware */
200 for (; y <= ymax; y++) 200 for (; y <= ymax; y++)
diff --git a/firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c b/firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c
index 6e3bb01a15..bd1fb19727 100644
--- a/firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c
+++ b/firmware/target/coldfire/iaudio/x5/lcd-remote-x5.c
@@ -399,7 +399,7 @@ void lcd_remote_update(void)
399{ 399{
400 int y; 400 int y;
401 if(remote_initialized) { 401 if(remote_initialized) {
402 for(y = 0;y < LCD_REMOTE_HEIGHT/8;y++) { 402 for(y = 0;y < LCD_REMOTE_FBHEIGHT;y++) {
403 /* Copy display bitmap to hardware. 403 /* Copy display bitmap to hardware.
404 The COM48-COM63 lines are not connected so we have to skip 404 The COM48-COM63 lines are not connected so we have to skip
405 them. Further, the column address doesn't wrap, so we 405 them. Further, the column address doesn't wrap, so we
@@ -427,8 +427,8 @@ void lcd_remote_update_rect(int x, int y, int width, int height)
427 width = LCD_REMOTE_WIDTH - x; 427 width = LCD_REMOTE_WIDTH - x;
428 if (width <= 0) 428 if (width <= 0)
429 return; /* nothing left to do, 0 is harmful to lcd_write_data() */ 429 return; /* nothing left to do, 0 is harmful to lcd_write_data() */
430 if(ymax >= LCD_REMOTE_HEIGHT) 430 if(ymax >= LCD_REMOTE_FBHEIGHT)
431 ymax = LCD_REMOTE_HEIGHT-1; 431 ymax = LCD_REMOTE_FBHEIGHT-1;
432 432
433 /* Copy specified rectangle bitmap to hardware 433 /* Copy specified rectangle bitmap to hardware
434 COM48-COM63 are not connected, so we need to skip those */ 434 COM48-COM63 are not connected, so we need to skip those */
diff --git a/firmware/target/coldfire/iriver/h100/lcd-h100.c b/firmware/target/coldfire/iriver/h100/lcd-h100.c
index 8afb23b85c..a721273384 100644
--- a/firmware/target/coldfire/iriver/h100/lcd-h100.c
+++ b/firmware/target/coldfire/iriver/h100/lcd-h100.c
@@ -189,7 +189,7 @@ void lcd_update(void)
189 int y; 189 int y;
190 190
191 /* Copy display bitmap to hardware */ 191 /* Copy display bitmap to hardware */
192 for (y = 0; y < LCD_HEIGHT/4; y++) 192 for (y = 0; y < LCD_FBHEIGHT; y++)
193 { 193 {
194 lcd_write_command_ex(LCD_CNTL_PAGE, y, -1); 194 lcd_write_command_ex(LCD_CNTL_PAGE, y, -1);
195 lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1); 195 lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1);
@@ -213,8 +213,8 @@ void lcd_update_rect(int x, int y, int width, int height)
213 width = LCD_WIDTH - x; 213 width = LCD_WIDTH - x;
214 if (width <= 0) 214 if (width <= 0)
215 return; /* nothing left to do, 0 is harmful to lcd_write_data() */ 215 return; /* nothing left to do, 0 is harmful to lcd_write_data() */
216 if(ymax >= LCD_HEIGHT/4) 216 if(ymax >= LCD_FBHEIGHT)
217 ymax = LCD_HEIGHT/4-1; 217 ymax = LCD_FBHEIGHT-1;
218 218
219 /* Copy specified rectange bitmap to hardware */ 219 /* Copy specified rectange bitmap to hardware */
220 for (; y <= ymax; y++) 220 for (; y <= ymax; y++)
diff --git a/firmware/target/sh/archos/lcd-archos-bitmap.c b/firmware/target/sh/archos/lcd-archos-bitmap.c
index 8b57099206..b458c81098 100644
--- a/firmware/target/sh/archos/lcd-archos-bitmap.c
+++ b/firmware/target/sh/archos/lcd-archos-bitmap.c
@@ -164,7 +164,7 @@ void lcd_update(void)
164 int y; 164 int y;
165 165
166 /* Copy display bitmap to hardware */ 166 /* Copy display bitmap to hardware */
167 for (y = 0; y < LCD_HEIGHT/8; y++) 167 for (y = 0; y < LCD_FBHEIGHT; y++)
168 { 168 {
169 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf)); 169 lcd_write_command (LCD_CNTL_PAGE | (y & 0xf));
170 lcd_write_command (LCD_CNTL_HIGHCOL | ((xoffset >> 4) & 0xf)); 170 lcd_write_command (LCD_CNTL_HIGHCOL | ((xoffset >> 4) & 0xf));
@@ -188,8 +188,8 @@ void lcd_update_rect(int x, int y, int width, int height)
188 width = LCD_WIDTH - x; 188 width = LCD_WIDTH - x;
189 if (width <= 0) 189 if (width <= 0)
190 return; /* nothing left to do, 0 is harmful to lcd_write_data() */ 190 return; /* nothing left to do, 0 is harmful to lcd_write_data() */
191 if(ymax >= LCD_HEIGHT/8) 191 if(ymax >= LCD_FBHEIGHT)
192 ymax = LCD_HEIGHT/8-1; 192 ymax = LCD_FBHEIGHT-1;
193 193
194 /* Copy specified rectange bitmap to hardware */ 194 /* Copy specified rectange bitmap to hardware */
195 for (; y <= ymax; y++) 195 for (; y <= ymax; y++)