fixed make_button

git-svn-id: svn://kolibrios.org@801 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2008-06-02 06:59:22 +00:00
parent a1cf173d09
commit e080f21757
2 changed files with 22 additions and 52 deletions

View File

@ -668,33 +668,3 @@ int __cdecl _stricmp (const char * dst, const char * src)
}
// debug_out_str(formats[fmt]);
// debug_out_str("\x0D\x0A\x00");
// debug_out_str("pci cmd: ");
// debug_out_hex(info.pci_cmd);
// debug_out_str("\x0D\x0A\x00");
// debug_out_str("irq line: ");
// debug_out_hex(info.irq);
// debug_out_str("\x0D\x0A\x00");
// debug_out_str("global control: ");
// debug_out_hex(info.glob_cntrl);
// debug_out_str("\x0D\x0A\x00");
// debug_out_str("global status: ");
// debug_out_hex(info.glob_sta);
// debug_out_str("\x0D\x0A\x00");
// call _print_volume
// debug_out_hex(whdr.nChannels);
// debug_out_str("\x0D\x0A\x00");
// debug_out_hex(whdr.nSamplesPerSec);
// debug_out_str("\x0D\x0A\x00");
// debug_out_hex(fmt);
// debug_out_str("\x0D\x0A\x00");

View File

@ -389,29 +389,29 @@ proc _DrawWindow@36 stdcall, x:dword, y:dword, sx:dword, sy:dword,\
endp
align 4
_make_button@24:
;arg1 - x
;arg2 - y
;arg3 - xsize
;arg4 - ysize
;arg5 - id
;arg6 - color
proc _make_button@24 stdcall,x:dword, y:dword, \
xsize:dword, ysize:dword, \
id:dword, color:dword
push ebx
push ecx
push esi
mov ebx,[esp+12]
shl ebx,16
mov bx,[esp+20]
mov ecx,[esp+16]
shl ecx,16
mov cx,[esp+24]
mov edx,[esp+28]
mov esi,[esp+32]
mov eax,8
int 0x40
pop esi ecx ebx
ret 24
push ebx
push esi
mov ebx,[x]
mov ecx,[y]
shl ebx,16
shl ecx,16
mov bx, word [xsize]
mov cx, word [ysize]
mov edx,[id]
mov esi,[color]
mov eax,8
int 0x40
pop esi
pop ebx
ret
endp
align 4
_draw_bar@20: