aboutsummaryrefslogtreecommitdiffstats
path: root/drv_LPH7508.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
commit3c851dd7e04640567ad5a738c43727bb40e9103e (patch)
treed6d80e104d74d26d5d8a67391958e8e362bf5633 /drv_LPH7508.c
parent51db519d969ceb3fb82effb49126314ca1d917b0 (diff)
downloadlcd4linux-3c851dd7e04640567ad5a738c43727bb40e9103e.tar.gz
lots of compiler warnings removed, C++-style comments removed, changed struc initialisation from 'field:value' to '.field=value'
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@771 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_LPH7508.c')
-rw-r--r--drv_LPH7508.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drv_LPH7508.c b/drv_LPH7508.c
index bc59a81..373742a 100644
--- a/drv_LPH7508.c
+++ b/drv_LPH7508.c
@@ -163,7 +163,8 @@ static void drv_L7_clear(void)
static void drv_L7_blit(const int row, const int col, const int height, const int width)
{
- int r, p;
+ int r, p, c, a;
+ unsigned char m;
/* transfer layout to display framebuffer */
for (r = row; r < row + height; r++) {
@@ -171,15 +172,14 @@ static void drv_L7_blit(const int row, const int col, const int height, const in
if (r >= SROWS - 1)
break;
/* page */
- int p = r / 8;
- int c;
+ p = r / 8;
for (c = col; c < col + width; c++) {
if (c >= SCOLS)
break;
/* RAM address */
- int a = p * SCOLS + c;
+ a = p * SCOLS + c;
/* bit mask */
- unsigned char m = 1 << (r % 8);
+ m = 1 << (r % 8);
if (drv_generic_graphic_black(r, c)) {
/* set bit */
Buffer1[a] |= m;
@@ -521,8 +521,8 @@ int drv_L7_quit(const int quiet)
DRIVER drv_LPH7508 = {
- name:Name,
- list:drv_L7_list,
- init:drv_L7_init,
- quit:drv_L7_quit,
+ .name = Name,
+ .list = drv_L7_list,
+ .init = drv_L7_init,
+ .quit = drv_L7_quit,
};