kolibrios/programs/network/htmlv/browser/include/some_code.h--

62 lines
1.4 KiB
Plaintext
Raw Normal View History

//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define BACK 300
#define FORWARD 301
#define REFRESH 302
#define HOME 303
#define NEWTAB 304
#define GOTOURL 305
#define SEARCHWEB 306
#define ID1 178
#define ID2 177
#define WINDOWS 0
#define DOS 1
#define KOI 2
#define UTF 3
#define DONT_LOAD 0
#define LETS_LOAD 1
dword get_URL_part(byte len) {
char temp1[1000];
copystr(#URL, #temp1);
temp1[len] = 0x00;
return #temp1;
}
inline fastcall CopyScreen(dword EBX, ECX, EDX)
{
EAX = 36;
$int 0x40;
}
inline byte chTag(dword text) {return strcmp(#tag,text);}
//<2F> <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>⮢, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
//<2F><><EFBFBD><EFBFBD><20><><EFBFBD> <20><><EFBFBD><E0AEA6><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>⥫쭮<E2A5AB><><E0A5A7><EFBFBD><EFBFBD>:
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20> <20><EFBFBD><EBA2AE><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><20><><EFBFBD><EFBFBD><EFBFBD><E1AAA0> <20><> ᬥ饭<E1ACA5><E9A5AD><EFBFBD>,
//<2F><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><E0A5AA> <20><><EFBFBD><EFBFBD><E2A8AD>
//<2F><><EFBFBD> <20><><EFBFBD><EFBFBD>稨 䮭<> <20> <20>.<2E>. <20><><EFBFBD><EFBFBD><EFA2A8><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><ECADAE><EFBFBD> <20><><EFBFBD><E8A5AD> :)
//<2F><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><20><><EFBFBD><EFBFBD><EFBFBD> <20> TBW - skin_width, Form.top, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E7A5AD> memory
inline void Skew(dword x,y,w,h)
{
dword italic_buf;
int tile_height=2,//<2F><EFBFBD> <20><EFBFBD><EBA2AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><E1A5AB><20><><EFBFBD><EFBFBD><EFBFBD><E1AAA0>
i, skin_width,
shift=-2;
italic_buf = mem_Alloc(w*h*3);
skin_width = GetSkinWidth();
CopyScreen(italic_buf, w * 65536 + h, x + Form.left + 2 * 65536 + y + Form.top + skin_width);
FOR (i=0;i*tile_height<h;i++){
PutImage(w*3*tile_height*i+italic_buf,w,tile_height,x+shift-i+1,i*tile_height+y);
}
mem_Free(italic_buf);
}