This commit is contained in:
Kevin Lange 2011-03-28 16:33:07 -05:00
parent 5450546a15
commit 57d5196509
2 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,10 @@ parse_args(char * arg) {
/* QEMU Video Mode, we are free to set things for 1024x768 */
graphics_install_bochs();
bochs_draw_logo("/bs.bmp");
char * welcome = "Welcome to ToAruOS!";
for (uint16_t i = 0; i < strlen(welcome); ++i) {
bochs_write_char(welcome[i], i * 8, 0, 0x00FFFFFF, 0x0);
}
}
}
}

View File

@ -159,7 +159,7 @@ bochs_write_char(
uint32_t fg,
uint32_t bg
) {
char * c = number_font[val - 0x20];
uint8_t * c = number_font[val - 0x20];
for (uint8_t i = 0; i < 12; ++i) {
bochs_set_bank((y+i) * bochs_resolution_x / BOCHS_BANK_SIZE);
if (c[i] & 0x80) { bochs_set_point(x,y+i,fg); } else { bochs_set_point(x,y+i,bg); }