git-svn-id: https://spexeah.com:8443/svn/Asuro@646 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
581a374a71
commit
96025771fe
BIN
bin/kernel.bin
BIN
bin/kernel.bin
Binary file not shown.
Binary file not shown.
BIN
lib/ACE.ppu
BIN
lib/ACE.ppu
Binary file not shown.
BIN
lib/BPE.ppu
BIN
lib/BPE.ppu
Binary file not shown.
BIN
lib/BTSSE.ppu
BIN
lib/BTSSE.ppu
Binary file not shown.
BIN
lib/CFE.ppu
BIN
lib/CFE.ppu
Binary file not shown.
BIN
lib/CSOE.ppu
BIN
lib/CSOE.ppu
Binary file not shown.
BIN
lib/DBGE.ppu
BIN
lib/DBGE.ppu
Binary file not shown.
BIN
lib/DBZ.ppu
BIN
lib/DBZ.ppu
Binary file not shown.
BIN
lib/DFE.ppu
BIN
lib/DFE.ppu
Binary file not shown.
BIN
lib/E1000.ppu
BIN
lib/E1000.ppu
Binary file not shown.
BIN
lib/GPF.ppu
BIN
lib/GPF.ppu
Binary file not shown.
BIN
lib/IDE.ppu
BIN
lib/IDE.ppu
Binary file not shown.
BIN
lib/IDOE.ppu
BIN
lib/IDOE.ppu
Binary file not shown.
BIN
lib/IOPE.ppu
BIN
lib/IOPE.ppu
Binary file not shown.
BIN
lib/MCE.ppu
BIN
lib/MCE.ppu
Binary file not shown.
BIN
lib/NCE.ppu
BIN
lib/NCE.ppu
Binary file not shown.
BIN
lib/NMIE.ppu
BIN
lib/NMIE.ppu
Binary file not shown.
BIN
lib/OOBE.ppu
BIN
lib/OOBE.ppu
Binary file not shown.
BIN
lib/PCI.ppu
BIN
lib/PCI.ppu
Binary file not shown.
BIN
lib/PF.ppu
BIN
lib/PF.ppu
Binary file not shown.
Binary file not shown.
BIN
lib/RTC.ppu
BIN
lib/RTC.ppu
Binary file not shown.
BIN
lib/SFE.ppu
BIN
lib/SFE.ppu
Binary file not shown.
BIN
lib/SNPE.ppu
BIN
lib/SNPE.ppu
Binary file not shown.
Binary file not shown.
BIN
lib/UIE.ppu
BIN
lib/UIE.ppu
Binary file not shown.
BIN
lib/USB.ppu
BIN
lib/USB.ppu
Binary file not shown.
BIN
lib/arp.ppu
BIN
lib/arp.ppu
Binary file not shown.
BIN
lib/asuro.ppu
BIN
lib/asuro.ppu
Binary file not shown.
Binary file not shown.
BIN
lib/console.o
BIN
lib/console.o
Binary file not shown.
BIN
lib/console.ppu
BIN
lib/console.ppu
Binary file not shown.
Binary file not shown.
BIN
lib/eth2.ppu
BIN
lib/eth2.ppu
Binary file not shown.
BIN
lib/fat32.ppu
BIN
lib/fat32.ppu
Binary file not shown.
BIN
lib/gdt.ppu
BIN
lib/gdt.ppu
Binary file not shown.
BIN
lib/idt.ppu
BIN
lib/idt.ppu
Binary file not shown.
BIN
lib/ipv4.ppu
BIN
lib/ipv4.ppu
Binary file not shown.
BIN
lib/irq.ppu
BIN
lib/irq.ppu
Binary file not shown.
BIN
lib/isr.ppu
BIN
lib/isr.ppu
Binary file not shown.
BIN
lib/kernel.ppu
BIN
lib/kernel.ppu
Binary file not shown.
BIN
lib/keyboard.ppu
BIN
lib/keyboard.ppu
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/libpsystem.a
BIN
lib/libpsystem.a
Binary file not shown.
BIN
lib/lists.ppu
BIN
lib/lists.ppu
Binary file not shown.
Binary file not shown.
BIN
lib/memview.ppu
BIN
lib/memview.ppu
Binary file not shown.
BIN
lib/mouse.ppu
BIN
lib/mouse.ppu
Binary file not shown.
BIN
lib/net.ppu
BIN
lib/net.ppu
Binary file not shown.
BIN
lib/netutils.ppu
BIN
lib/netutils.ppu
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/serial.ppu
BIN
lib/serial.ppu
Binary file not shown.
BIN
lib/shell.ppu
BIN
lib/shell.ppu
Binary file not shown.
BIN
lib/splash.ppu
Normal file
BIN
lib/splash.ppu
Normal file
Binary file not shown.
Binary file not shown.
BIN
lib/strings.ppu
BIN
lib/strings.ppu
Binary file not shown.
BIN
lib/terminal.ppu
BIN
lib/terminal.ppu
Binary file not shown.
Binary file not shown.
BIN
lib/tracer.ppu
BIN
lib/tracer.ppu
Binary file not shown.
BIN
lib/tss.ppu
BIN
lib/tss.ppu
Binary file not shown.
BIN
lib/util.ppu
BIN
lib/util.ppu
Binary file not shown.
Binary file not shown.
@ -193,6 +193,8 @@ procedure bordersEnabled(WND : HWND; enabled : boolean);
|
||||
procedure SetShellWindow(WND : HWND; b : boolean);
|
||||
function getWindowName(WND : HWND) : pchar;
|
||||
|
||||
procedure mouseEnabled(b : boolean);
|
||||
|
||||
procedure _MouseDown();
|
||||
procedure _MouseUp();
|
||||
procedure _MouseClick(left : boolean);
|
||||
@ -311,7 +313,12 @@ var
|
||||
MovingWindow : uint32;
|
||||
UnhandledClick : Boolean = false;
|
||||
UnhandledClickLeft : Boolean = false;
|
||||
MouseCursorEnabled : Boolean = true;
|
||||
|
||||
procedure mouseEnabled(b : boolean);
|
||||
begin
|
||||
MouseCursorEnabled:= b;
|
||||
end;
|
||||
|
||||
procedure _MouseDown();
|
||||
begin
|
||||
@ -674,7 +681,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
outputCharToScreenSpace(char(0), WindowManager.MousePrev.x, WindowManager.MousePrev.y, $FFFF);
|
||||
if MouseCursorEnabled then outputCharToScreenSpace(char(0), WindowManager.MousePrev.x, WindowManager.MousePrev.y, $FFFF);
|
||||
end;
|
||||
|
||||
procedure setMousePosition(x : uint32; y : uint32);
|
||||
|
@ -3,11 +3,11 @@ unit asuro;
|
||||
interface
|
||||
|
||||
const
|
||||
VERSION = '1.0.0-642a';
|
||||
VERSION = '1.0.0-645a';
|
||||
VERSION_MAJOR = '1';
|
||||
VERSION_MINOR = '0';
|
||||
VERSION_SUB = '0';
|
||||
REVISION = '642';
|
||||
REVISION = '645';
|
||||
RELEASE = 'a';
|
||||
|
||||
implementation
|
||||
|
@ -47,7 +47,8 @@ uses
|
||||
RTC,
|
||||
serial,
|
||||
shell,
|
||||
memview;
|
||||
memview,
|
||||
splash;
|
||||
|
||||
procedure kmain(mbinfo: Pmultiboot_info_t; mbmagic: uint32); stdcall;
|
||||
|
||||
@ -216,6 +217,9 @@ begin
|
||||
shell.init();
|
||||
memview.init();
|
||||
|
||||
{ Init Splash }
|
||||
splash.init();
|
||||
|
||||
//console.writehexln(uint32(multibootinfo^.framebuffer_addr));
|
||||
//tracer.push_trace('kmain.KEYHOOK');
|
||||
//keyboard.hook(@temphook);
|
||||
|
86
src/prog/splash.pas
Normal file
86
src/prog/splash.pas
Normal file
@ -0,0 +1,86 @@
|
||||
unit splash;
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
console, keyboard;
|
||||
|
||||
procedure init();
|
||||
|
||||
implementation
|
||||
|
||||
var
|
||||
Splash_Handle : HWND;
|
||||
Tick : uint32;
|
||||
Colors : uint32;
|
||||
Loops : uint32 = 0;
|
||||
|
||||
procedure quit();
|
||||
begin
|
||||
closeWindow(Splash_Handle);
|
||||
mouseEnabled(true);
|
||||
end;
|
||||
|
||||
procedure keypress(info : TKeyInfo);
|
||||
begin
|
||||
quit();
|
||||
end;
|
||||
|
||||
procedure animate();
|
||||
var
|
||||
Delta : uint32;
|
||||
|
||||
begin
|
||||
inc(Tick);
|
||||
Delta:= Tick div 100;
|
||||
Delta:= Delta mod 15;
|
||||
ClearWNDEx(Splash_Handle, Colors);
|
||||
if Delta > 1 then begin
|
||||
setCursorPosWND(45, 27, Splash_Handle);
|
||||
writestringExWND(' db ', Colors, Splash_Handle);
|
||||
end;
|
||||
if Delta > 2 then begin
|
||||
setCursorPosWND(45, 28, Splash_Handle);
|
||||
writestringExWND(' d88b ', Colors, Splash_Handle);
|
||||
end;
|
||||
if Delta > 3 then begin
|
||||
setCursorPosWND(45, 29, Splash_Handle);
|
||||
writestringExWND(' d8''`8b ', Colors, Splash_Handle);
|
||||
end;
|
||||
if Delta > 4 then begin
|
||||
setCursorPosWND(45, 30, Splash_Handle);
|
||||
writestringExWND(' d8'' `8b ,adPPYba, 88 88 8b,dPPYba, ,adPPYba,', Colors, Splash_Handle);
|
||||
end;
|
||||
if Delta > 5 then begin
|
||||
setCursorPosWND(45, 31, Splash_Handle);
|
||||
writestringExWND(' d8YaaaaY8b I8[ "" 88 88 88P'' "Y8 a8" "8a', Colors, Splash_Handle);
|
||||
end;
|
||||
if Delta > 6 then begin
|
||||
setCursorPosWND(45, 32, Splash_Handle);
|
||||
writestringExWND(' d8""""""""8b `"Y8ba, 88 88 88 8b d8', Colors, Splash_Handle);
|
||||
end;
|
||||
if Delta > 7 then begin
|
||||
setCursorPosWND(45, 33, Splash_Handle);
|
||||
writestringExWND(' d8'' `8b aa ]8I "8a, ,a88 88 "8a, ,a8"', Colors, Splash_Handle);
|
||||
end;
|
||||
if Delta > 8 then begin
|
||||
setCursorPosWND(45, 34, Splash_Handle);
|
||||
writestringExWND('d8'' `8b `"YbbdP"'' `"YbbdP''Y8 88 `"YbbdP"''', Colors, Splash_Handle);
|
||||
end;
|
||||
if Tick > 2100 then begin
|
||||
quit();
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure init();
|
||||
begin
|
||||
Colors:= combineColors($FFFF, $5CDE);
|
||||
Splash_Handle:= newWindow(0, 0, 159, 63, 'SPLASH');
|
||||
SetShellWindow(Splash_Handle, false);
|
||||
BordersEnabled(Splash_Handle, false);
|
||||
registerEventHandler(Splash_Handle, EVENT_DRAW, void(@animate));
|
||||
registerEventHandler(Splash_Handle, EVENT_KEY_PRESSED, void(@keypress));
|
||||
mouseEnabled(false);
|
||||
end;
|
||||
|
||||
end.
|
Loading…
x
Reference in New Issue
Block a user