This commit is contained in:
Yourtion
2014-09-12 15:15:53 +08:00
parent 58039b57ed
commit 54036bf76a
7 changed files with 154 additions and 148 deletions

View File

@@ -1,4 +1,4 @@
/* bootpackのメイン */
/* bootpack */
#include <stdio.h>
@@ -68,7 +68,8 @@ void HariMain(void)
init_gdtidt();
init_palette();
init_screen8(binfo->vram, binfo->scrnx, binfo->scrny);
mx = (binfo->scrnx - 16) / 2; /* 画面中央になるように座標計算 */
mx = (binfo->scrnx - 16) / 2; /* 计算画面的中心坐标*/
my = (binfo->scrny - 28 - 16) / 2;
init_mouse_cursor8(mcursor, COL8_008484);
putblock8_8(binfo->vram, binfo->scrnx, 16, 16, mx, my, mcursor, 16);
@@ -78,4 +79,4 @@ void HariMain(void)
for (;;) {
io_hlt();
}
}
}