diff --git a/programs/develop/libraries/TinyGL/asm_fork/ztriangle.inc b/programs/develop/libraries/TinyGL/asm_fork/ztriangle.inc index e8ffc08835..f8c224268c 100644 --- a/programs/develop/libraries/TinyGL/asm_fork/ztriangle.inc +++ b/programs/develop/libraries/TinyGL/asm_fork/ztriangle.inc @@ -781,6 +781,8 @@ end if sub dword[n],4 jmp .cycle_1 .cycle_2: ;while (n>=0) + cmp dword[n],0 + jl .cycle_2_end if INTERP_RGB eq 1 ; коректирование испорченных пикселей (в конце линии) bt dword[or1],31 @@ -811,8 +813,6 @@ if INTERP_RGB eq 1 mov dword[ob1],0xff00 .end_b: end if - cmp dword[n],0 - jl .cycle_2_end PUT_PIXEL 0 if INTERP_Z eq 1 add dword[pz],2 ;=sizeof(uint) diff --git a/programs/other/t_edit/t_button.inc b/programs/other/t_edit/t_button.inc index 2613a10a3b..2a303494ff 100644 --- a/programs/other/t_edit/t_button.inc +++ b/programs/other/t_edit/t_button.inc @@ -17,10 +17,7 @@ struct symbol td dd ? ;+14 ६. 㤠 ends -sc system_colors - bmp_icon dd 0 -run_file_70 FileInfoBlock ;input: diff --git a/programs/other/t_edit/t_edit.asm b/programs/other/t_edit/t_edit.asm index ed77dac1c9..6bdeb16a60 100644 --- a/programs/other/t_edit/t_edit.asm +++ b/programs/other/t_edit/t_edit.asm @@ -84,7 +84,7 @@ icon_tl_sys dd 0 ;㪠 align 4 start: - mcall 48,3,sc,sizeof.system_colors + mcall 48,3,sc,sizeof.sys_colors_new mcall 68,11 or eax,eax @@ -596,6 +596,9 @@ i_end: last_open_synt_file rb 32 ; ᫥ 祭 䠩 ᨭ⠪ buf rb BUF_SIZE ; ஢ ⠢ buf_find rb 302 ; ᪠ ⥪ + run_file_70 FileInfoBlock + sc system_colors + rb sizeof.sys_colors_new-sizeof.system_colors IncludeUGlobals align 16 procinfo process_information