Make sure only ASCII characters are rendered.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14039 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -101,6 +101,10 @@ get_palette_entry(uint8 index)
|
|||||||
static void
|
static void
|
||||||
render_glyph(int32 x, int32 y, uint8 glyph, uint8 attr)
|
render_glyph(int32 x, int32 y, uint8 glyph, uint8 attr)
|
||||||
{
|
{
|
||||||
|
// we're ASCII only
|
||||||
|
if (glyph > 127)
|
||||||
|
glyph = 127;
|
||||||
|
|
||||||
if (sConsole.depth >= 8) {
|
if (sConsole.depth >= 8) {
|
||||||
uint8 *base = (uint8 *)(sConsole.frame_buffer + sConsole.bytes_per_row * y * CHAR_HEIGHT
|
uint8 *base = (uint8 *)(sConsole.frame_buffer + sConsole.bytes_per_row * y * CHAR_HEIGHT
|
||||||
+ x * CHAR_WIDTH * sConsole.bytes_per_pixel);
|
+ x * CHAR_WIDTH * sConsole.bytes_per_pixel);
|
||||||
|
|||||||
Reference in New Issue
Block a user