a few changes to better support gcc 2.95 (paul_c)

This commit is contained in:
marschap
2007-05-28 17:55:59 +00:00
parent 5e5ee21e37
commit 0e6b1253a9
7 changed files with 24 additions and 16 deletions
+6 -6
View File
@@ -569,6 +569,11 @@ MtxOrb_flush (Driver *drvthis)
unsigned char *sp = p->framebuf + (i * p->width);
unsigned char *sq = p->backingstore + (i * p->width);
// set pointers to end of the line in frame buffer & backing store
unsigned char *ep = sp + (p->width - 1);
unsigned char *eq = sq + (p->width - 1);
int length = 0;
debug(RPT_DEBUG, "Framebuf: '%.*s'", p->width, sp);
debug(RPT_DEBUG, "Backingstore: '%.*s'", p->width, sq);
@@ -577,11 +582,6 @@ MtxOrb_flush (Driver *drvthis)
* - leave out leading and trailing parts that are identical
*/
// set pointers to end of the line in frame buffer & backing store
unsigned char *ep = sp + (p->width - 1);
unsigned char *eq = sq + (p->width - 1);
int length = 0;
// skip over leading identical portions of the line
for (j = 0; (sp <= ep) && (*sp == *sq); sp++, sq++, j++)
;
@@ -1193,7 +1193,7 @@ MODULE_EXPORT void
MtxOrb_set_char (Driver *drvthis, int n, unsigned char *dat)
{
PrivateData *p = drvthis->private_data;
unsigned char out[12] = { '\xFE', 'N', 0, 0,0,0,0,0,0,0,0 };;
unsigned char out[12] = { '\xFE', 'N', 0, 0,0,0,0,0,0,0,0 };
unsigned char mask = (1 << p->cellwidth) - 1;
int row;
+1 -1
View File
@@ -378,7 +378,7 @@ serialVFD_set_char (Driver *drvthis, int n, unsigned char *dat)
int posbyte = (pos-1) / 5;
int posbit = 4 - ((pos-1) % 5);
letter |= ((dat[posbyte] >> posbit) & 1) << bit;;
letter |= ((dat[posbyte] >> posbit) & 1) << bit;
}
}
p->custom_char[n][byte] = letter;