Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8152 → Rev 8153

/programs/bcc32/include/kolibri.h
37,6 → 37,7
// 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.
/programs/bcc32/include/kos_func.inc
485,6 → 485,20
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