forked from KolibriOS/kolibrios
Add button to example and includes (BCC)
git-svn-id: svn://kolibrios.org@8153 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user