diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-06-24 23:06:06 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-24 23:06:06 +0000 |
commit | 24a1f94cd7cc50fbda6689d33c5d2dbcf123dab5 (patch) | |
tree | 1be06cf64f839ea856f28122e0bcd3d8c6182c8c /firmware/drivers | |
parent | 22c1a8e1d97c3fd078067f4e1d2444b3499bd869 (diff) | |
download | rockbox-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')
-rw-r--r-- | firmware/drivers/lcd-h100.c | 14 | ||||
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/firmware/drivers/lcd-h100.c b/firmware/drivers/lcd-h100.c index 2b0326eb3b..db2aba8673 100644 --- a/firmware/drivers/lcd-h100.c +++ b/firmware/drivers/lcd-h100.c | |||
@@ -331,7 +331,7 @@ static void nopixel(int x, int y) | |||
331 | (void)y; | 331 | (void)y; |
332 | } | 332 | } |
333 | 333 | ||
334 | tLCDPixelFunc* pixelfunc[8] = {flippixel, nopixel, setpixel, setpixel, | 334 | lcd_pixelfunc_type* pixelfunc[8] = {flippixel, nopixel, setpixel, setpixel, |
335 | nopixel, clearpixel, nopixel, clearpixel}; | 335 | nopixel, clearpixel, nopixel, clearpixel}; |
336 | 336 | ||
337 | static void flipblock(unsigned char *address, unsigned mask, unsigned bits) | 337 | static void flipblock(unsigned char *address, unsigned mask, unsigned bits) |
@@ -354,7 +354,7 @@ static void solidblock(unsigned char *address, unsigned mask, unsigned bits) | |||
354 | *address = (*address & ~mask) | (bits & mask); | 354 | *address = (*address & ~mask) | (bits & mask); |
355 | } | 355 | } |
356 | 356 | ||
357 | tLCDBlockFunc* blockfunc[4] = {flipblock, bgblock, fgblock, solidblock}; | 357 | lcd_blockfunc_type* blockfunc[4] = {flipblock, bgblock, fgblock, solidblock}; |
358 | 358 | ||
359 | /*** drawing functions ***/ | 359 | /*** drawing functions ***/ |
360 | 360 | ||
@@ -384,7 +384,7 @@ void lcd_drawline(int x1, int y1, int x2, int y2) | |||
384 | int d, dinc1, dinc2; | 384 | int d, dinc1, dinc2; |
385 | int x, xinc1, xinc2; | 385 | int x, xinc1, xinc2; |
386 | int y, yinc1, yinc2; | 386 | int y, yinc1, yinc2; |
387 | tLCDPixelFunc *pfunc = pixelfunc[drawmode]; | 387 | lcd_pixelfunc_type *pfunc = pixelfunc[drawmode]; |
388 | 388 | ||
389 | deltax = abs(x2 - x1); | 389 | deltax = abs(x2 - x1); |
390 | deltay = abs(y2 - y1); | 390 | deltay = abs(y2 - y1); |
@@ -452,7 +452,7 @@ void lcd_hline(int x1, int x2, int y) | |||
452 | int x; | 452 | int x; |
453 | unsigned char *dst; | 453 | unsigned char *dst; |
454 | unsigned char mask, bits; | 454 | unsigned char mask, bits; |
455 | tLCDBlockFunc *bfunc; | 455 | lcd_blockfunc_type *bfunc; |
456 | 456 | ||
457 | /* direction flip */ | 457 | /* direction flip */ |
458 | if (x2 < x1) | 458 | if (x2 < x1) |
@@ -487,7 +487,7 @@ void lcd_vline(int x, int y1, int y2) | |||
487 | int ny; | 487 | int ny; |
488 | unsigned char *dst; | 488 | unsigned char *dst; |
489 | unsigned char mask_top, mask_bottom, bits; | 489 | unsigned char mask_top, mask_bottom, bits; |
490 | tLCDBlockFunc *bfunc; | 490 | lcd_blockfunc_type *bfunc; |
491 | 491 | ||
492 | /* direction flip */ | 492 | /* direction flip */ |
493 | if (y2 < y1) | 493 | if (y2 < y1) |
@@ -547,7 +547,7 @@ void lcd_drawrect(int x, int y, int width, int height) | |||
547 | } | 547 | } |
548 | 548 | ||
549 | /* helper function for lcd_fillrect() */ | 549 | /* helper function for lcd_fillrect() */ |
550 | static void fillrow(tLCDBlockFunc *bfunc, unsigned char *address, | 550 | static void fillrow(lcd_blockfunc_type *bfunc, unsigned char *address, |
551 | int width, unsigned mask, unsigned bits) | 551 | int width, unsigned mask, unsigned bits) |
552 | { | 552 | { |
553 | int i; | 553 | int i; |
@@ -562,7 +562,7 @@ void lcd_fillrect(int x, int y, int width, int height) | |||
562 | int ny; | 562 | int ny; |
563 | unsigned char *dst; | 563 | unsigned char *dst; |
564 | unsigned char mask_top, mask_bottom, bits; | 564 | unsigned char mask_top, mask_bottom, bits; |
565 | tLCDBlockFunc *bfunc; | 565 | lcd_blockfunc_type *bfunc; |
566 | bool fillopt = (drawmode & DRMODE_INVERSEVID) ? | 566 | bool fillopt = (drawmode & DRMODE_INVERSEVID) ? |
567 | (drawmode & DRMODE_BG) : (drawmode & DRMODE_FG); | 567 | (drawmode & DRMODE_BG) : (drawmode & DRMODE_FG); |
568 | 568 | ||
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 | ||
393 | tLCDPixelFunc* pixelfunc[8] = {flippixel, nopixel, setpixel, setpixel, | 393 | lcd_pixelfunc_type* pixelfunc[8] = {flippixel, nopixel, setpixel, setpixel, |
394 | nopixel, clearpixel, nopixel, clearpixel}; | 394 | nopixel, clearpixel, nopixel, clearpixel}; |
395 | 395 | ||
396 | static void flipblock(unsigned char *address, unsigned mask, unsigned bits) | 396 | static 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 | ||
416 | tLCDBlockFunc* blockfunc[4] = {flipblock, bgblock, fgblock, solidblock}; | 416 | lcd_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() */ |
609 | static void fillrow(tLCDBlockFunc *bfunc, unsigned char *address, | 609 | static 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 | ||