Kor_Lee_Hee_Rak
HROS WOC SystemHROS WOC Systemは HRProgram(私が導く刺身紗羅高でもしましょうか? 信じようが信じまいが)で作った運営体制です. RapuOSを基盤としてテーマも変えながらうちのことで作っています. 起動音作り起動音と言う(のは) Windowsが始まる時出る效果音を言います. 私が製作した osguzo.net46.net には初ページに Windows XP 起動音を入れたんです. 今度はこれを直接製作しようとします.
ウィンドウ移動タスクmmlplay.hrbで音楽を聞いています. こんな良くない事を解決する最高の方法は新しいタスクを作るのです. 私がただいま私はこれを修正して窓を移しながら音楽を聞くことができるようにしました. winmove.c新たにこのファイルを作って MakeFileに登録させてください. #include "bootpack.h"
#include <stdio.h>
struct WDATA wdatstr;
void winmove_task()
{
struct TASK *task = task_now()
for(;;)
{
io_cli()
if (fifo32_status(&task->fifo) != 0)
{
fifo32_get(&task->fifo)
io_sti()
sheet_slide(wdatstr.wsht, wdatstr.wnew_wx, wdatstr.wnew_wy)
}
else
{
task_sleep(task)
io_sti()
}
}
}
void winmove_move(struct SHEET *rsht, int rnew_wx, int rnew_wy, struct TASK *mytask)
{
wdatstr.wsht = rsht;
wdatstr.wnew_wx = rnew_wx;
wdatstr.wnew_wy = rnew_wy;
fifo32_put(&mytask->fifo, 1)
}
bootpack.h上の winmove.cに登録した関数と旧朝体を登録します. struct WDATA {
struct SHEET *wsht;
int wnew_wx, wnew_wy;
};
void winmove_task()
void winmove_move(struct SHEET *rsht, int rnew_wx, int rnew_wy, struct TASK *mytask)
bootpack.cタスクをすぐ始動させるようにします(RapuOSに当たるように使いました. 修正法はみんなご存知でしょう?). struct TASK *winmove = task_alloc() int *winmove_fifo = (int *) memman_alloc_4k(memman, 128 * 4) winmove->tss.esp = memman_alloc_4k(memman, 64 * 1024) + 64 * 1024; winmove->tss.eip = (int) &winmove_task; winmove->tss.es = 1 * 8; winmove->tss.cs = 2 * 8; winmove->tss.ss = 1 * 8; winmove->tss.ds = 1 * 8; winmove->tss.fs = 1 * 8; winmove->tss.gs = 1 * 8; winmove->time = 0; strcpy(winmove->name, "WinMover.sce") task_run(winmove, 3, 2) /* level=1, priority=2 */ fifo32_init(&winmove->fifo, 128, winmove_fifo, winmove) 最後に窓を移す部分を修正します. どうもはご存知でしょう? if (fifo32_status(&fifo) == 0) {
/* FIFO? */
if (new_mx >= 0) {
io_sti()
sheet_slide(sht_mouse, new_mx, new_my)
new_mx = -1;
} else if (new_wx != 0x7fffffff) {
io_sti()
winmove_move(sht, new_wx, new_wy, winmove)
new_wx = 0x7fffffff;
} else {
task_sleep(task_a)
io_sti()
}
そしてテストします. 韓国語になる!!この言葉は "私は李喜楽だ!!!"という意味です. Commentコメントのテストをしたが、それにもかかわらず、この現象は、昔のままですね。コメントを書く人々のためにosguzo.net46.netを利用してコメントを入れるようにしなければね。 |