Add button to example and includes (BCC)

git-svn-id: svn://kolibrios.org@8153 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
maxcodehack
2020-11-06 19:42:52 +00:00
parent 10c141ffd3
commit 9c0ca4f346
5 changed files with 24 additions and 8 deletions

View File

@@ -37,6 +37,7 @@ namespace Kolibri // All kolibri functions, types and data are nested in the (
// Note: pass only thread data of current thread as (thread_data) parameter to these functions.
void Main(); // Main function is called at program startup.
void DrawButton(long id, long color, long x, long y, long c_x, long c_y); // Draw Standard button
void* ThreadMain(void *user = 0, void *stack_begin = 0);
// Called at thread startup, (user) is placed in thread data as a user dword,
//_ (stack_begin) is placed in thread data as a stack beginning.

View File

@@ -485,6 +485,20 @@ proc @Kolibri@GetPackedTime$qv
ret
endp
proc @Kolibri@DrawButton$qllllll uses ebx esi
mov eax,8
mov ebx,[esp+12+8]
shl ebx,16
mov bx,[esp+20+8]
mov ecx,[esp+16+8]
shl ecx,16
mov cx,[esp+24+8]
mov edx,[esp+4+8]
mov esi,[esp+8+8]
int 0x40
ret
endp
proc @Kolibri@GetTime$qpi
mov eax,3
int 0x40