Skip to content

Commit

Permalink
Fix framebuffer characters 128..255
Browse files Browse the repository at this point in the history
  • Loading branch information
djphoenix committed May 27, 2019
1 parent 2bd3181 commit 30b96ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernlib/display.cpp
Expand Up @@ -87,7 +87,7 @@ class FramebufferDisplay: public Display {
} else if (c == '\t') {
offset += 8 - ((offset % charWidth()) % 8);
} else {
const uint8_t *fontsym = fb_font_8x16 + (size_t(c) * 16);
const uint8_t *fontsym = fb_font_8x16 + (size_t(uint8_t(c)) * 16);
size_t offsetX = offset % charWidth();
size_t offsetY = offset / charWidth();
size_t pb = pixelBytes();
Expand Down

0 comments on commit 30b96ef

Please sign in to comment.