From b2579e99a5d53ab06bbdc9030e7cccf3267248ed Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Fri, 12 Oct 2007 15:38:14 +0000 Subject: [PATCH] From : Fix buf in editbox.mac git-svn-id: svn://kolibrios.org@645 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/examples/editbox/trunk/editbox.mac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/develop/examples/editbox/trunk/editbox.mac b/programs/develop/examples/editbox/trunk/editbox.mac index 0f628fe0ed..972057e391 100644 --- a/programs/develop/examples/editbox/trunk/editbox.mac +++ b/programs/develop/examples/editbox/trunk/editbox.mac @@ -829,7 +829,7 @@ macro use_mouse_func scr_w ;;;;;;;;;;;;;;;;;; ;;процедура обработки положения выделенного текста, когда происходит выход за пределы editbox ;;;;;;;;;;;;;;;;;; - mov ebx,[procinfo.box.left] + mov ebx,dword [procinfo+34] add ebx,ed_left if scr_w eq else @@ -929,7 +929,7 @@ macro use_work_mause scr_h,scr_w ;---------------------------------------------------------- ;--- проверяем, попадает ли курсор в edit box ------------- ;---------------------------------------------------------- - mov ebx,[procinfo.box.top] + mov ebx,dword [procinfo + 38] add ebx,ed_top if scr_h eq else @@ -944,7 +944,7 @@ end if shr eax,16 - mov ebx,[procinfo.box.left] + mov ebx,dword [procinfo + 34] add ebx,ed_left if scr_w eq else @@ -962,7 +962,7 @@ end if call .clear_cursor pop eax ._mvpos: - mov ebx,dword [procinfo.box.left] + mov ebx,dword [procinfo+ 34] xor edx,edx sub eax,ed_left sub eax,ebx