From 1a8eec51d68fb3534be98c1c9bafa78102fd82a1 Mon Sep 17 00:00:00 2001 From: pathoswithin Date: Sat, 5 Nov 2016 05:38:27 +0000 Subject: [PATCH] fix height git-svn-id: svn://kolibrios.org@6677 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../libraries/box_lib/trunk/editbox.mac | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/programs/develop/libraries/box_lib/trunk/editbox.mac b/programs/develop/libraries/box_lib/trunk/editbox.mac index 4ec5e3aa9e..4677313deb 100644 --- a/programs/develop/libraries/box_lib/trunk/editbox.mac +++ b/programs/develop/libraries/box_lib/trunk/editbox.mac @@ -228,7 +228,7 @@ edit_box.draw_text: add ebx,2 shl ebx,16 add ebx,ed_top - add ebx,2 + add ebx,3 mov ecx,ed_text_color test dword ed_flags,ed_pass jnz .password @@ -270,7 +270,6 @@ edit_box.draw_bg_eax: inc ecx shl ecx,16 add ecx,ed_height - dec ecx mcall 13 ret @@ -310,7 +309,7 @@ edit_box.draw_cursor: shl ecx,16 add ecx,edx add ecx,ed_height - sub ecx,4 + sub ecx,3 mov cl_curs_x,ebx mov cl_curs_y,ecx mov edx,ed_text_color @@ -322,41 +321,36 @@ edit_box.draw_curs: ;--- процедура рисования рамки ---------------------------- ;---------------------------------------------------------- edit_box.draw_border: -;--- цвет рамки --- test word ed_flags,ed_focus mov edx,ed_focus_border_color jne @f mov edx,ed_blur_border_color @@: -;--- сверху --- - mov eax,38 mov ebx,ed_left mov ecx,ebx shl ebx,16 - mov bx,cx + add ebx,ecx add ebx,ed_width mov ecx,ed_top mov esi,ecx shl ecx,16 - mov cx,si - mcall -;--- снизу --- + add ecx,esi + mcall 38 ; top mov esi,ecx + inc ecx add ecx,ed_height mov ebp,ecx shl ecx,16 mov cx,bp - mcall -;--- слева --- + mcall ; bottom mov cx,si mov ebp,ebx sub ebx,ed_width - mcall -;--- справа --- + mcall ; left mov ebx,ebp shl ebx,16 mov bx,bp - mcall + mcall ; right ret ;----------------------------------------------------------