aboutsummaryrefslogtreecommitdiffstats
path: root/drv_LPH7508.c
diff options
context:
space:
mode:
Diffstat (limited to 'drv_LPH7508.c')
-rw-r--r--drv_LPH7508.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drv_LPH7508.c b/drv_LPH7508.c
index 814f936..bb33a9a 100644
--- a/drv_LPH7508.c
+++ b/drv_LPH7508.c
@@ -1,4 +1,4 @@
-/* $Id: drv_LPH7508.c 728 2007-01-14 11:14:38Z michael $
+/* $Id: drv_LPH7508.c 773 2007-02-25 12:39:09Z michael $
* $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/drv_LPH7508.c $
*
* driver for Pollin LPH7508
@@ -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;
@@ -454,7 +454,7 @@ int drv_L7_init(const char *section, const int quiet)
{
int ret;
- info("%s: %s", Name, "$Rev: 728 $");
+ info("%s: %s", Name, "$Rev: 773 $");
/* real worker functions */
drv_generic_graphic_real_blit = drv_L7_blit;
@@ -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,
};