Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6734 → Rev 6735

/programs/cmm/TWB/TWB.c
157,7 → 157,7
break;
}
case '\9':
if (style.pre) //èíà÷å èä¸ì íà 0x0d
if (style.pre) //otherwise go to 0x0d
{
tab_len = strlen(#line) % 4;
if (!tab_len) tab_len = 4;
205,7 → 205,7
Perenos();
DrawStyle();
line = NULL;
if (tag) SetStyle(); //îáðàáîòêà òåãîâ
if (tag) SetStyle();
strlcpy(#oldtag, #tag, sizeof(oldtag));
tag = attr = tagparam = ignor_param = NULL;
break;
226,7 → 226,7
NewLine();
DrawPage();
if (list.first == 0) list.count = stroka;
if (anchor) //åñëè ïîñðåäè òåêñòà ïîÿâèòñÿ íîâûé ÿêîðü - áóäåò áåñêîíå÷íûé öèêë
if (anchor)
{
anchor=NULL;
list.first=anchor_line_num;
253,7 → 253,6
int top1 = stroka * list.item_h + list.y + 5;
byte opened;
byte meta_encoding;
//ïðîâåðÿåì òåã îòêðûâàåòñÿ èëè çàêðûâàåòñÿ
if (tag[0] == '/')
{
opened = 0;
268,7 → 267,7
if (istag("form")) if (!opened) ignor_text = false;
if(istag("title")) {
if (opened) header=NULL;
else if (!stroka) DrawTitle(#header); //òåã çàêðûëñÿ - âûâåëè ñòðîêó
else if (!stroka) DrawTitle(#header);
return;
}
if (ignor_text) return;
279,7 → 278,7
if (!opened) strcat(#line, "\" ");
return;
}
if (anchor) && (isattr("id=")) { //î÷åíü ïëîõî!!! ïîòîìó ÷òî åñëè íå ïîñëåäíèé òåã, ðàáîòàòü íå áóäåò
if (anchor) if (isattr("id=")) || (isattr("name=")) { //very bad: if the tag is not the last it wound work
if (!strcmp(#anchor, #val)) anchor_line_num=list.first+stroka;
}
if (istag("body")) {
310,13 → 309,6
text_colors[text_color_index] = link_color_inactive;
PageLinks.AddLink(#val, DrawBuf.zoom * stolbec * list.font_w + left1, top1-DrawBuf.zoom);
}
if (anchor) && (isattr("name="))
{
if (!strcmp(#anchor, #val))
{
anchor_line_num=list.first+stroka;
}
}
} while(GetNextParam());
}
else {
419,7 → 411,7
do{
if (isattr("charset=")) || (isattr("content=")) || (isattr("encoding="))
{
strcpy(#val, #val[strrchr(#val, '=')]); //ïîèñê â content=
strcpy(#val, #val[strrchr(#val, '=')]); //search in content=
strlwr(#val);
if (isval("utf-8")) || (isval("utf8")) meta_encoding = CH_UTF8;
else if (isval("koi8-r")) || (isval("koi8-u")) meta_encoding = CH_KOI8;
/programs/cmm/TWB/img_cache.h
82,7 → 82,6
imgh=WB1.list.y+WB1.list.h-top1-5;
}
if (imgh<=0) return;
if (anchor) return;
img_draw stdcall (pics[cur_pic].image, left1-5, top1, imgw, imgh,0,img_lines_first);
DrawBar(left1+imgw - 5, top1, WB1.list.w-imgw, imgh, bg_color);
/programs/cmm/eolite/Eolite.c
71,7 → 71,6
 
byte
path[4096],
DefaultPath[4096],
file_path[4096],
file_name[256],
new_element_name[256],
91,7 → 90,6
int j, i;
int action_buf;
int rand_n;
byte CMD_REFRESH;
 
//struct t_settings {
char sort_num=2;
134,10 → 132,7
dword id;
byte count_sl = 0;
signed x_old, y_old, dif_x, dif_y, adif_x, adif_y;
char can_show, can_select, stats;
dword selected_offset;
dword IPC_LEN,IPC_ID;
char IPC_BUF[10];
char stats;
rand_n = random(40);
 
load_dll(boxlib, #box_lib_init,0);
410,7 → 405,7
break;
case 049: //Ctrl+N - create new window
if (Form.left==98) MoveSize(Form.left-20,Form.top-20,OLD,OLD);
RunProgram("/sys/File Managers/Eolite", #path);
RunProgram(I_Path, #path);
break;
case 050: //Ctrl+M
Open_Dir(#inactive_path,WITH_REDRAW);
881,7 → 876,7
{
if (!strncmp(#file_name,"..",3)) return;
strcpy(#temp, #file_path);
RunProgram("/sys/File Managers/Eolite", #temp);
RunProgram(I_Path, #temp);
return;
}
if (!files.count) return;
/programs/cmm/lib/file_system.h
278,7 → 278,7
}
else
{
strcpy(#absolute_path, #program_path);
strcpy(#absolute_path, I_Path);
absolute_path[strrchr(#absolute_path, '/')] = '\0';
strcat(#absolute_path, relative_path);
}
/programs/cmm/lib/keyboard.h
70,9 → 70,9
$shr eax,8
}
 
unsigned char key_ascii;
dword key_scancode, key_modifier, key_editbox;
int GetKeys()
:unsigned char key_ascii;
:dword key_scancode, key_modifier, key_editbox;
:int GetKeys()
{
$push edx
GETKEY:
/programs/cmm/lib/kolibri.h
360,11 → 360,12
$int 0x40;
}
 
void WriteTextB(dword x,y,byte fontType, dword color, EDX)
:void WriteTextB(dword x,y,byte fontType, dword color, str_offset)
{
EAX = 4;
EBX = x<<16+y;
ECX = fontType<<24+color;
EDX = str_offset;
ESI = 0;
$int 0x40;
$add ebx, 1<<16
371,11 → 372,12
$int 0x40
}
 
void WriteText(dword x,y,byte fontType, dword color, EDX)
:void WriteText(dword x,y,byte fontType, dword color, str_offset)
{
EAX = 4;
EBX = x<<16+y;
ECX = fontType<<24+color;
EDX = str_offset;
$int 0x40;
}
 
387,18 → 389,20
$int 0x40;
}
 
void WriteNumber(dword x,y,byte fontType, dword color, count, ECX)
void WriteNumber(dword x,y,byte fontType, dword color, count, number_or_offset)
{
EAX = 47;
EBX = count<<16;
ECX = number_or_offset;
EDX = x<<16+y;
ESI = fontType<<24+color;
$int 0x40;
}
 
void CopyScreen(dword EBX, x, y, w, h)
:void CopyScreen(dword dst_offset, x, y, w, h)
{
EAX = 36;
EBX = dst_offset;
ECX = w << 16 + h;
EDX = x << 16 + y;
$int 0x40;
411,10 → 415,10
$int 0x40
}
 
 
void _PutImage(dword x,y, w,h, EBX)
:void _PutImage(dword x,y, w,h, data_offset)
{
EAX = 7;
EBX = data_offset;
ECX = w<<16+h;
EDX = x<<16+y;
$int 0x40
610,6 → 614,8
mem_init();
 
if (program_path[0]!='/') I_Path++;
 
main();
ExitProcess();
}
/programs/cmm/software_widget/software_widget.c
66,7 → 66,7
}
else
{
strcat(#settings_ini_path, #program_path + strrchr(#program_path, '/'));
strcat(#settings_ini_path, I_Path + strrchr(I_Path, '/'));
strcat(#settings_ini_path, ".ini");
}
/programs/cmm/vfc/vfc_gui.h
59,7 → 59,7
break;
case BID_COMPARE:
sprintf(#run_param, "\"%s\" \"%s\"", #src_box_text, #dst_box_text);
io.run(#program_path+1, #run_param);
io.run(I_Path, #run_param);
break;
}
break;