make other drivers also work correctly when SEAMLESS_HBARS is set

This commit is contained in:
marschap
2005-06-28 17:09:03 +00:00
parent 4e4a460aca
commit bf1c2688c2
5 changed files with 64 additions and 2 deletions
+10
View File
@@ -752,6 +752,15 @@ char d[CELLWIDTH*CELLHEIGHT] = {
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
1, 1, 1, 1, 0 };
char e[CELLWIDTH*CELLHEIGHT] = {
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1 };
if (p->ccmode != hbar) {
if (p->ccmode != standard) {
@@ -766,6 +775,7 @@ char d[CELLWIDTH*CELLHEIGHT] = {
IOWarrior_set_char(drvthis, 2, b);
IOWarrior_set_char(drvthis, 3, c);
IOWarrior_set_char(drvthis, 4, d);
IOWarrior_set_char(drvthis, 5, e);
}
}
+21 -2
View File
@@ -193,7 +193,7 @@ char bar_down[7][5*8] = { /* Presently, this is not used */
0,0,0,0,0,
},};
char bar_right[4][5*8] = {
char bar_right[5][5*8] = {
{
1,0,0,0,0, // char r1[] =
1,0,0,0,0,
@@ -230,9 +230,18 @@ char bar_right[4][5*8] = {
1,1,1,1,0,
1,1,1,1,0,
1,1,1,1,0,
},{
1,1,1,1,1, // char r5[] =
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
},};
char bar_left[4][5*8] = { /* Presently, this is not used. */
char bar_left[5][5*8] = { /* Presently, this is not used. */
{
0,0,0,0,1, // char l1[] =
0,0,0,0,1,
@@ -269,6 +278,15 @@ char bar_left[4][5*8] = { /* Presently, this is not used. */
0,1,1,1,1,
0,1,1,1,1,
0,1,1,1,1,
},{
1,1,1,1,1, // char l5[] =
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
1,1,1,1,1,
},};
@@ -624,6 +642,7 @@ bayrad_init_hbar(Driver * drvthis)
bayrad_set_char(drvthis, 2, bar_right[1]);
bayrad_set_char(drvthis, 3, bar_right[2]);
bayrad_set_char(drvthis, 4, bar_right[3]);
bayrad_set_char(drvthis, 5, bar_right[4]);
return;
}
+11
View File
@@ -692,6 +692,16 @@ HD44780_init_hbar (Driver *drvthis)
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
};
char e[] = {
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
};
if( p->ccmode == CCMODE_HBAR ) {
/* Work already done */
@@ -709,6 +719,7 @@ HD44780_init_hbar (Driver *drvthis)
HD44780_set_char (drvthis, 2, b);
HD44780_set_char (drvthis, 3, c);
HD44780_set_char (drvthis, 4, d);
HD44780_set_char (drvthis, 5, e);
}
+11
View File
@@ -470,6 +470,16 @@ lcterm_init_hbar (Driver *drvthis)
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
};
static char hbar_5[] = {
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
};
if( p->last_ccmode == CCMODE_HBAR ) /* Work already done */
return;
@@ -486,6 +496,7 @@ lcterm_init_hbar (Driver *drvthis)
lcterm_set_char (drvthis, 2, hbar_2);
lcterm_set_char (drvthis, 3, hbar_3);
lcterm_set_char (drvthis, 4, hbar_4);
lcterm_set_char (drvthis, 5, hbar_5);
}
+11
View File
@@ -388,12 +388,23 @@ sli_init_hbar (Driver *drvthis)
1, 1, 1, 1, 0,
1, 1, 1, 1, 0,
};
char e[] = {
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1,
};
if (custom != hbar) {
sli_set_char (drvthis, 1, a);
sli_set_char (drvthis, 2, b);
sli_set_char (drvthis, 3, c);
sli_set_char (drvthis, 4, d);
sli_set_char (drvthis, 5, e);
custom = hbar;
}
}