• R/O
  • SSH
  • HTTPS

chnosproject: Commit


Commit MetaInfo

Revisión157 (tree)
Tiempo2010-10-06 21:25:59
Autorhikarupsp

Log Message

とりあえず起動画面もどきを作った。
何かキーを押すと続行しますよ~

Cambiar Resumen

Diferencia incremental

--- beta/tolset_chn_000/chnos_007/chnos/bootpack.c (revision 156)
+++ beta/tolset_chn_000/chnos_007/chnos/bootpack.c (revision 157)
@@ -21,6 +21,24 @@
2121
2222 system.draw.init_screen(system.sys.sht.desktop_buf, system.sys.sht.taskbar_buf, *system.sys.sht.mouse_buf);
2323
24+ for(;;){
25+ system.io.cli();
26+ if(system.data.fifo.status(&system.sys.fifo) == 0){
27+ task_sleep(system.sys.task.main);
28+ system.io.sti();
29+ } else {
30+ i = system.data.fifo.get(&system.sys.fifo);
31+ i -= SYS_FIFO_START_KEYB;
32+ if(i == 0x1c){
33+ sheet_updown(system.sys.sht.core, -1);
34+ sheet_updown(system.sys.sht.desktop, 1);
35+ sheet_updown(system.sys.sht.taskbar, 2);
36+ sheet_updown(system.sys.sht.mouse, 3);
37+ break;
38+ }
39+ }
40+ }
41+
2442 sheet_refresh_full(system.sys.sht.desktop);
2543 sheet_refresh_full(system.sys.sht.taskbar);
2644 sheet_refresh_full_alpha(system.sys.sht.mouse);
@@ -46,11 +64,9 @@
4664 console_task->tss.ds = 1 * 8;
4765 console_task->tss.fs = 1 * 8;
4866 console_task->tss.gs = 1 * 8;
49- task_arguments(console_task, 1, console_win);
67+ task_arguments(console_task, 2, console_win);
5068 task_run(console_task, 2, 2);
5169
52- draw_chnos_logo(testwin->buf, testwin->winxsize, 30, 80, 80);
53- refresh_window(testwin);
5470
5571 for(;;){
5672 system.io.cli();
--- beta/tolset_chn_000/chnos_007/chnos/init.c (revision 156)
+++ beta/tolset_chn_000/chnos_007/chnos/init.c (revision 157)
@@ -96,6 +96,14 @@
9696
9797 system.draw.sht.init(system.sys.vram, system.sys.xsize, system.sys.ysize, system.sys.bpp);
9898
99+ system.sys.sht.core = system.draw.sht.alloc();
100+ system.sys.sht.core_buf = system.io.mem.alloc(system.sys.xsize * system.sys.ysize * (system.sys.bpp / 8));
101+ system.draw.sht.set(system.sys.sht.core, system.sys.sht.core_buf, system.sys.xsize, system.sys.ysize, INV_COL32);
102+ system.draw.boxfill(system.sys.sht.core_buf, system.sys.xsize, 0x000000, 0, 0, system.sys.xsize, system.sys.ysize);
103+ draw_chnos_logo(system.sys.sht.core_buf, system.sys.xsize, 30, 80, 80);
104+ system.draw.sht.updown(system.sys.sht.core, 1);
105+
106+
99107 system.sys.sht.desktop = system.draw.sht.alloc();
100108 system.sys.sht.mouse = system.draw.sht.alloc();
101109 system.sys.sht.taskbar = system.draw.sht.alloc();
@@ -108,11 +116,11 @@
108116 system.draw.sht.set(system.sys.sht.taskbar, system.sys.sht.taskbar_buf, system.sys.xsize, system.sys.ysize, INV_COL32);
109117
110118 system.draw.sht.slide(system.sys.sht.desktop, 0, 0);
111- system.draw.sht.updown(system.sys.sht.desktop, 1);
119+ system.draw.sht.updown(system.sys.sht.desktop, -1);
112120 system.draw.sht.slide(system.sys.sht.taskbar, 0, system.sys.ysize - TASKBAR_HEIGHT);
113- system.draw.sht.updown(system.sys.sht.taskbar, 2);
121+ system.draw.sht.updown(system.sys.sht.taskbar, -1);
114122 system.draw.sht.slide(system.sys.sht.mouse, system.sys.xsize / 2, system.sys.ysize / 2);
115- system.draw.sht.updown(system.sys.sht.mouse, 3);
123+ system.draw.sht.updown(system.sys.sht.mouse, -1);
116124
117125 system.data.fifo.init(&system.sys.fifo, SYS_FIFOSIZE, system.sys.fifo_buf, 0);
118126 system.data.fifo.init(&system.sys.keycmd, KEYCMD_FIFOSIZE, system.sys.keycmd_buf, 0);
--- beta/tolset_chn_000/chnos_007/chnos/core.h (revision 156)
+++ beta/tolset_chn_000/chnos_007/chnos/core.h (revision 157)
@@ -383,9 +383,11 @@
383383 } app;
384384 struct SYS_SYS {
385385 struct SYS_SYS_SHT {
386+ struct SHEET32 *core;
386387 struct SHEET32 *desktop;
387388 struct SHEET32 *mouse;
388389 struct SHEET32 *taskbar;
390+ unsigned int *core_buf;
389391 unsigned int *desktop_buf;
390392 unsigned int mouse_buf[24][24];
391393 unsigned int *taskbar_buf;
Show on old repository browser