aboutsummaryrefslogtreecommitdiff
path: root/kernel/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/graphics')
-rw-r--r--kernel/graphics/lfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/graphics/lfb.c b/kernel/graphics/lfb.c
index e76fccb..9f87b6f 100644
--- a/kernel/graphics/lfb.c
+++ b/kernel/graphics/lfb.c
@@ -124,7 +124,7 @@ void draw_cbyte(unsigned int lx, unsigned int ly, unsigned char letter, unsigned
}
for(y=0; y<GLYPH_Y; y++) {
for(x=0; x<GLYPH_X; x++) {
- if((0x80 >> ((GLYPH_X-1)-x)) & glyphs[y+GLYPH_Y*(ltr)]) {
+ if((0x80 >> ((GLYPH_X-1)-x)) & font[ltr][y]) {
*((unsigned int*)ptr) = gisrgb ? (unsigned int)((c&0xFF)<<16 | (c&0xFF00) | (c&0xFF0000)>>16) : c;
} else {
*((unsigned int*)ptr) = 0x000000;
@@ -148,7 +148,7 @@ void draw_cletter(unsigned int lx, unsigned int ly, unsigned char letter, unsign
unsigned char ltr = letter & 0x7F;
for(y=0; y<GLYPH_Y; y++) {
for(x=0; x<GLYPH_X; x++) {
- if((0x80 >> ((GLYPH_X-1)-x)) & glyphs[y+GLYPH_Y*(ltr)]) {
+ if((0x80 >> ((GLYPH_X-1)-x)) & font[ltr][y]) {
*((unsigned int*)ptr) = gisrgb ? (unsigned int)((c&0xFF)<<16 | (c&0xFF00) | (c&0xFF0000)>>16) : c;
} else {
*((unsigned int*)ptr) = 0x000000;