summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-recorder.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-24 23:06:06 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-24 23:06:06 +0000
commit24a1f94cd7cc50fbda6689d33c5d2dbcf123dab5 (patch)
tree1be06cf64f839ea856f28122e0bcd3d8c6182c8c /firmware/drivers/lcd-recorder.c
parent22c1a8e1d97c3fd078067f4e1d2444b3499bd869 (diff)
downloadrockbox-24a1f94cd7cc50fbda6689d33c5d2dbcf123dab5.tar.gz
rockbox-24a1f94cd7cc50fbda6689d33c5d2dbcf123dab5.zip
Fixed yellow FM builds, and changed the function type names according to the rockbox coding style.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6858 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-recorder.c')
-rw-r--r--firmware/drivers/lcd-recorder.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index 16a47f28bf..a83f58e35d 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -390,7 +390,7 @@ static void nopixel(int x, int y)
390 (void)y; 390 (void)y;
391} 391}
392 392
393tLCDPixelFunc* pixelfunc[8] = {flippixel, nopixel, setpixel, setpixel, 393lcd_pixelfunc_type* pixelfunc[8] = {flippixel, nopixel, setpixel, setpixel,
394 nopixel, clearpixel, nopixel, clearpixel}; 394 nopixel, clearpixel, nopixel, clearpixel};
395 395
396static void flipblock(unsigned char *address, unsigned mask, unsigned bits) 396static void flipblock(unsigned char *address, unsigned mask, unsigned bits)
@@ -413,7 +413,7 @@ static void solidblock(unsigned char *address, unsigned mask, unsigned bits)
413 *address = (*address & ~mask) | (bits & mask); 413 *address = (*address & ~mask) | (bits & mask);
414} 414}
415 415
416tLCDBlockFunc* blockfunc[4] = {flipblock, bgblock, fgblock, solidblock}; 416lcd_blockfunc_type* blockfunc[4] = {flipblock, bgblock, fgblock, solidblock};
417 417
418/*** drawing functions ***/ 418/*** drawing functions ***/
419 419
@@ -443,7 +443,7 @@ void lcd_drawline(int x1, int y1, int x2, int y2)
443 int d, dinc1, dinc2; 443 int d, dinc1, dinc2;
444 int x, xinc1, xinc2; 444 int x, xinc1, xinc2;
445 int y, yinc1, yinc2; 445 int y, yinc1, yinc2;
446 tLCDPixelFunc *pfunc = pixelfunc[drawmode]; 446 lcd_pixelfunc_type *pfunc = pixelfunc[drawmode];
447 447
448 deltax = abs(x2 - x1); 448 deltax = abs(x2 - x1);
449 deltay = abs(y2 - y1); 449 deltay = abs(y2 - y1);
@@ -511,7 +511,7 @@ void lcd_hline(int x1, int x2, int y)
511 int x; 511 int x;
512 unsigned char *dst; 512 unsigned char *dst;
513 unsigned char mask, bits; 513 unsigned char mask, bits;
514 tLCDBlockFunc *bfunc; 514 lcd_blockfunc_type *bfunc;
515 515
516 /* direction flip */ 516 /* direction flip */
517 if (x2 < x1) 517 if (x2 < x1)
@@ -546,7 +546,7 @@ void lcd_vline(int x, int y1, int y2)
546 int ny; 546 int ny;
547 unsigned char *dst; 547 unsigned char *dst;
548 unsigned char mask_top, mask_bottom, bits; 548 unsigned char mask_top, mask_bottom, bits;
549 tLCDBlockFunc *bfunc; 549 lcd_blockfunc_type *bfunc;
550 550
551 /* direction flip */ 551 /* direction flip */
552 if (y2 < y1) 552 if (y2 < y1)
@@ -606,7 +606,7 @@ void lcd_drawrect(int x, int y, int width, int height)
606} 606}
607 607
608/* helper function for lcd_fillrect() */ 608/* helper function for lcd_fillrect() */
609static void fillrow(tLCDBlockFunc *bfunc, unsigned char *address, 609static void fillrow(lcd_blockfunc_type *bfunc, unsigned char *address,
610 int width, unsigned mask, unsigned bits) 610 int width, unsigned mask, unsigned bits)
611{ 611{
612 int i; 612 int i;
@@ -621,7 +621,7 @@ void lcd_fillrect(int x, int y, int width, int height)
621 int ny; 621 int ny;
622 unsigned char *dst; 622 unsigned char *dst;
623 unsigned char mask_top, mask_bottom, bits; 623 unsigned char mask_top, mask_bottom, bits;
624 tLCDBlockFunc *bfunc; 624 lcd_blockfunc_type *bfunc;
625 bool fillopt = (drawmode & DRMODE_INVERSEVID) ? 625 bool fillopt = (drawmode & DRMODE_INVERSEVID) ?
626 (drawmode & DRMODE_BG) : (drawmode & DRMODE_FG); 626 (drawmode & DRMODE_BG) : (drawmode & DRMODE_FG);
627 627