Subversion Repositories Kolibri OS

Compare Revisions

No changes between revisions

Regard whitespace Rev 3106 → Rev 3105

/programs/cmm/lib/lib.obj/iconv.h
File deleted
\ No newline at end of file
/programs/cmm/lib/lib.obj/netcode.h
File deleted
\ No newline at end of file
/programs/cmm/lib/lib.obj
Property changes:
Deleted: tsvn:logminsize
-5
\ No newline at end of property
/programs/cmm/lib/network.h
34,13 → 34,33
 
dword GetIPfromAdress(dword addr)
{
dword lpointer, IPa;
dword lpointer;
getaddrinfo stdcall (addr, 0, 0, #lpointer);
if (EAX!=0) IPa = 0; else IPa = DSDWORD[DSDWORD[lpointer+24]+4];
freeaddrinfo stdcall (lpointer);
return IPa;
if (EAX!=0) return 0; //если ошибка
return DSDWORD[DSDWORD[lpointer+24]+4];
}
 
/*dword GetIPfromAdressASM(dword addr)
{
dword lpointer;
 
ESP=#lpointer;
$push esp // lpointer
$push esp // fourth parameter
$push 0 // third parameter
$push 0 // second parameter
EAX = addr;
$push eax // first parameter
$call getaddrinfo
if (EAX!=0) return 0; //ошибка
$pop esi
$mov ebx, DSDWORD[lpointer+24]
$mov eax, DSDWORD[EBX+4]
return EAX;
}*/
 
 
/*
//Convert the string from standard IPv4 dotted notation to integer IP addr.
inet_addr stdcall ("192.168.0.1");
/programs/cmm/lib/figures.h
17,7 → 17,7
void DrawCaptButton(dword x,y,width,height,id,color_b, color_t,text,text_len)
{
DefineButton(x,y,width,height,id,color_b);
WriteText(-text_len*6+width/2+x+1,height/2-3+y,0x80,color_t,text);
WriteText(-text_len*6+width/2+x+1,height/2-3+y,0x80,color_t,text,0);
}
 
void DrawCircle(int x, y, r)
31,27 → 31,3
py = -px / r + py;
}
}
 
void CheckBox(dword x,y,w,h, bt_id, text, graph_color, text_color, is_checked)
{
DefineButton(x-1, y-1, strlen(text)*6 + w + 17, h+2, bt_id+BT_HIDE+BT_NOFRAME, graph_color);
WriteText(x+w+10, h / 2 + y -3, 0x80, text_color, text);
DrawRectangle(x, y, w, h, graph_color);
if (is_checked == 1)
{
DrawRectangle(x+1, y+1, w-2, h-2, 0xffffff);
DrawBar(x+2, y+2, w-3, h-3, graph_color);
return; //не дадим стрелять себе в ногу
}
if (is_checked == 2) //not active
{
DrawRectangle(x+1, y+1, w-2, h-2, 0xffffff);
DrawBar(x+2, y+2, w-3, h-3, 0x888888);
return;
}
else
{
DrawRectangle3D(x+1, y+1, w-2, h-2, 0xDDDddd, 0xffffff);
DrawBar(x+2, y+2, w-3, h-3, 0xffffff);
}
}
/programs/cmm/lib/encoding.h
170,4 → 170,13
}
wintodos(#symbol);
AL=symbol;
}
}
 
/*
int hex2char(dword c)
{
if (c <=9)
return (c+48);
 
return (c - 10 + 'a');
}*/