Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4145 → Rev 4146

/programs/system/icon_new/DlgAdd.inc
12,9 → 12,65
cmp eax,-1
jne SetProp
 
m2m dword[AddX],dword[MouseX]
m2m dword[AddY],dword[MouseY]
;-----------
mov eax,[MouseX]
mov ebx,[MouseY]
 
cmp ax,[wsX]
jae @f
mov ax,[wsX]
@@:
 
cmp bx,[wsY]
jae @f
mov bx,[wsY]
@@: ;eax,ebx - ॠ«ì­ ï ª®®à¤¨­ â . ‚ᥠª®®à¤¨­ âë ¢ ¯à®£¥ ®â­®á¨â¥«ì­® «¥¢®£® ¢¥àå­¥£® 㣫  à ¡®ç¥© ®¡« áâ¨
 
xor edx,edx
mov dx,[wsXe]
sub edx,ICON_SIZE
cmp eax,edx
jbe @f
mov eax,edx
@@:
 
mov dx,[wsYe]
sub edx,ICON_SIZE
cmp ebx,edx
jbe @f
mov ebx,edx
@@:
 
xor edx,edx ;¯à¥®¡à §®¢ë¢ ¥¬ ¢ ®â­®á¨â¥«ì­ë¥
mov dx,[wsW]
shr edx,1
add dx,[wsX]
cmp eax,edx
jbe @f
sub ax,[wsXe]
inc ax
jmp .dlg1
@@:
sub ax,[wsX]
.dlg1:
 
xor edx,edx
mov dx,[wsH]
shr edx,1
add dx,[wsY]
cmp ebx,edx
jbe @f
sub bx,[wsYe]
inc bx
jmp .dlg2
@@:
sub bx,[wsY]
.dlg2:
 
mov [AddX],eax
mov [AddY],ebx
;-----------
 
mov ecx,NAME_LENGTH
mov edi,DAreaName
xor al,al