forked from KolibriOS/kolibrios
1) correction functions 'buf_filled_rect_by_size' and 'buf_line_h' in 'buf2d.obj'
2) fix & update 'kol_f_edit' git-svn-id: svn://kolibrios.org@1717 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1045,12 +1045,15 @@ proc buf_line_h, buf_struc:dword, coord_x0:dword, coord_y0:dword, coord_x1:dword
|
||||
mov ecx,dword[coord_y0]
|
||||
mov edx,dword[color]
|
||||
mov esi,dword[coord_x1]
|
||||
|
||||
@@: ;for (x=x0 ; x<x1; x++) ;------------------------------------
|
||||
call draw_pixel
|
||||
inc ebx
|
||||
cmp ebx,esi
|
||||
jle @f
|
||||
xchg ebx,esi ;¥á«¨ x0 > x1 â® ¬¥ï¥¬ ¬¥áâ ¬¨ x0 ¨ x1
|
||||
|
||||
@@: ;横« ¯® ®á¨ x ®â x0 ¤® x1
|
||||
cmp ebx,esi
|
||||
jge @f
|
||||
call draw_pixel
|
||||
inc ebx
|
||||
jmp @b
|
||||
@@:
|
||||
.end24:
|
||||
@@ -1099,6 +1102,8 @@ pushad
|
||||
mov edx,[w]
|
||||
add edx,eax
|
||||
mov ecx,[h]
|
||||
cmp ecx,1 ;áà ¢¥¨¥ á ¬¨¨¬ «ì® ¢®§¬®¦®© ¢ëá®â®©
|
||||
jl .coord_end ;¥á«¨ ¢ëá®â ¬¥ìè¥ 1-£® ¯¨ªá¥«ï
|
||||
mov esi,dword[color]
|
||||
cld
|
||||
@@:
|
||||
|
||||
Reference in New Issue
Block a user