From <Lrz>:

Fix buf in editbox.mac

git-svn-id: svn://kolibrios.org@645 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2007-10-12 15:38:14 +00:00
parent d372427ef3
commit b2579e99a5

View File

@ -829,7 +829,7 @@ macro use_mouse_func scr_w
;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;
;;¯à®æ¥¤ãà  ®¡à ¡®âª¨ ¯®«®¦¥­¨ï ¢ë¤¥«¥­­®£® ⥪áâ , ª®£¤  ¯à®¨á室¨â ¢ë室 §  ¯à¥¤¥«ë editbox ;;¯à®æ¥¤ãà  ®¡à ¡®âª¨ ¯®«®¦¥­¨ï ¢ë¤¥«¥­­®£® ⥪áâ , ª®£¤  ¯à®¨á室¨â ¢ë室 §  ¯à¥¤¥«ë editbox
;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;
mov ebx,[procinfo.box.left] mov ebx,dword [procinfo+34]
add ebx,ed_left add ebx,ed_left
if scr_w eq if scr_w eq
else else
@ -929,7 +929,7 @@ macro use_work_mause scr_h,scr_w
;---------------------------------------------------------- ;----------------------------------------------------------
;--- ¯à®¢¥à塞, ¯®¯ ¤ ¥â «¨ ªãàá®à ¢ edit box ------------- ;--- ¯à®¢¥à塞, ¯®¯ ¤ ¥â «¨ ªãàá®à ¢ edit box -------------
;---------------------------------------------------------- ;----------------------------------------------------------
mov ebx,[procinfo.box.top] mov ebx,dword [procinfo + 38]
add ebx,ed_top add ebx,ed_top
if scr_h eq if scr_h eq
else else
@ -944,7 +944,7 @@ end if
shr eax,16 shr eax,16
mov ebx,[procinfo.box.left] mov ebx,dword [procinfo + 34]
add ebx,ed_left add ebx,ed_left
if scr_w eq if scr_w eq
else else
@ -962,7 +962,7 @@ end if
call .clear_cursor call .clear_cursor
pop eax pop eax
._mvpos: ._mvpos:
mov ebx,dword [procinfo.box.left] mov ebx,dword [procinfo+ 34]
xor edx,edx xor edx,edx
sub eax,ed_left sub eax,ed_left
sub eax,ebx sub eax,ebx