重构内存分配器、增加中断支持、整理rust运行时环境 #4
|
@ -58,8 +58,8 @@ void tty_set_framebuffer(tty *ttyx, framebuffer *fb)
|
||||||
ttyx->height = ttyx->typeinfo.raw_framebuffer.height;
|
ttyx->height = ttyx->typeinfo.raw_framebuffer.height;
|
||||||
if (ttyx->mode == tty_mode_text)
|
if (ttyx->mode == tty_mode_text)
|
||||||
{
|
{
|
||||||
ttyx->text.width = fb->width / tty_get_font()->char_width;
|
ttyx->text.width = fb->width / (TTY_FONT_SCALE * tty_get_font()->char_width);
|
||||||
ttyx->text.height = fb->height / tty_get_font()->char_height;
|
ttyx->text.height = fb->height / (TTY_FONT_SCALE * tty_get_font()->char_height);
|
||||||
ttyx->text.line = 0;
|
ttyx->text.line = 0;
|
||||||
ttyx->text.column = 0;
|
ttyx->text.column = 0;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue