bug fix
This commit is contained in:
parent
fdaff54b21
commit
44e2862131
@ -66,7 +66,7 @@ static void fbcon_draw_raw(int row, int col, char ch) {
|
||||
static void fbcon_draw_hzk(int row, int col, u16 ch) {
|
||||
u8 code0 = ((ch >> 8) & 0xff);
|
||||
u8 code1 = (ch & 0xff);
|
||||
if (code0 == 0) {fbcon_draw_raw(row, col, code1); return; }
|
||||
if (code0 < 0xa0) {fbcon_draw_raw(row, col, code1); return; }
|
||||
else { code0 -= 0xa0; code1 -= 0xa0; }
|
||||
u32 offset = (94 * (code0 - 1) + (code1 - 1)) * 32;
|
||||
u16* hzk16h = (u16*)&hzk16h_buf[offset];
|
||||
@ -78,6 +78,9 @@ static void fbcon_draw_hzk(int row, int col, u16 ch) {
|
||||
if (bigend & (1 << (x))) {
|
||||
clr ^= 0xffffffff;
|
||||
}
|
||||
// if ((u32)cur_fb + ind * 4 == 0xfd600000) {
|
||||
// kprintf("%x %d %d %d %d\n", ch, col, row, x, y);
|
||||
// }
|
||||
cur_fb[ind] = clr;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user