Subversion Repositories Kolibri OS

Rev

Rev 2228 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2228 Rev 2248
1
//ª­®¯ª¨
1
//ª­®¯ª¨
2
#define BACK		300
2
#define BACK		300
3
#define FORWARD		301
3
#define FORWARD		301
4
#define REFRESH		302
4
#define REFRESH		302
5
#define HOME		303
5
#define HOME		303
6
#define NEWTAB		304
6
#define NEWTAB		304
7
#define GOTOURL		305
7
#define GOTOURL		305
8
#define SEARCHWEB	306
8
#define SEARCHWEB	306
9
#define ID1		178
9
#define ID1		178
10
#define ID2		177
10
#define ID2		177
11
 
11
 
12
#define WINDOWS	0
12
#define WINDOWS	0
13
#define DOS		1
13
#define DOS		1
14
#define KOI		2
14
#define KOI		2
15
#define UTF		3
15
#define UTF		3
16
 
-
 
17
#define DONT_LOAD	0
-
 
18
#define LETS_LOAD	1
-
 
19
                      
16
                      
20
 
17
 
21
dword get_URL_part(byte len) {
18
dword get_URL_part(byte len) {
22
	char temp1[1000];
19
	char temp1[1000];
23
	copystr(#URL, #temp1);
20
	copystr(#URL, #temp1);
24
	temp1[len] = 0x00;
21
	temp1[len] = 0x00;
25
	return #temp1;
22
	return #temp1;
26
}
23
}
27
 
24
 
28
inline fastcall CopyScreen(dword EBX, ECX, EDX)
25
inline fastcall CopyScreen(dword EBX, ECX, EDX)
29
{
26
{
30
  EAX = 36;
27
  EAX = 36;
31
  $int  0x40;
28
  $int  0x40;
32
}
29
}
33
 
30
 
34
inline byte chTag(dword text) {return strcmp(#tag,text);}
31
inline byte chTag(dword text) {return strcmp(#tag,text);}
35
 
32
 
36
//“ ­ á ­¥â ­ ª«®­­ëå èà¨ä⮢, ¯®í⮬㠤¥« ¥¬ ª®áâë«ì ¨§
33
//“ ­ á ­¥â ­ ª«®­­ëå èà¨ä⮢, ¯®í⮬㠤¥« ¥¬ ª®áâë«ì ¨§
37
//¯ «®ç¥ª ¤«ï ¬®à®¦¥­®£® ¨ ¦¥¢ â¥«ì­®© १¨­ª¨:
34
//¯ «®ç¥ª ¤«ï ¬®à®¦¥­®£® ¨ ¦¥¢ â¥«ì­®© १¨­ª¨:
38
//‘­¨¬ ¥¬ ®¡« áâì íªà ­  ¨ ¢ë¢®¤¨¬ ¥ñ ®¡à â­® ¯®«®áª ¬¨ ᮠᬥ饭¨¥¬,
35
//‘­¨¬ ¥¬ ®¡« áâì íªà ­  ¨ ¢ë¢®¤¨¬ ¥ñ ®¡à â­® ¯®«®áª ¬¨ ᮠᬥ饭¨¥¬,
39
//çâ® ¤ ñâ ¯¥à¥ª®á ª à⨭ª¨
36
//çâ® ¤ ñâ ¯¥à¥ª®á ª à⨭ª¨
40
//à¨ ­ «¨ç¨¨ ä®­  ¨ â.¯. ¯à®ï¢¨âáï ¢áï ª®áâë«ì­®áâì à¥è¥­¨ï :)
37
//à¨ ­ «¨ç¨¨ ä®­  ¨ â.¯. ¯à®ï¢¨âáï ¢áï ª®áâë«ì­®áâì à¥è¥­¨ï :)
41
 
38
 
42
//ç áâì ¤ ­­ëå 㦥 ¯®«ã祭  ¢ TBW - skin_width, Form.top, ¯®¤ª«î祭¨¥ memory 
39
//ç áâì ¤ ­­ëå 㦥 ¯®«ã祭  ¢ TBW - skin_width, Form.top, ¯®¤ª«î祭¨¥ memory 
43
inline void Skew(dword x,y,w,h)
40
inline void Skew(dword x,y,w,h)
44
{
41
{
45
dword italic_buf;
42
dword italic_buf;
46
int tile_height=2,//¡ã¤¥¬ ¢ë¢®¤¨âì ¤¢ã寨ªá¥«ì­ë¬¨ ¯®«®áª ¬¨
43
int tile_height=2,//¡ã¤¥¬ ¢ë¢®¤¨âì ¤¢ã寨ªá¥«ì­ë¬¨ ¯®«®áª ¬¨
47
i, skin_width,
44
i, skin_width,
48
shift=-2;
45
shift=-2;
49
 
46
 
50
  italic_buf = mem_Alloc(w*h*3);
47
  italic_buf = mem_Alloc(w*h*3);
51
  
48
  
52
  skin_width = GetSkinWidth();
49
  skin_width = GetSkinWidth();
53
 
50
 
54
  CopyScreen(italic_buf, w * 65536 + h, x + Form.left + 2 * 65536 + y + Form.top + skin_width);
51
  CopyScreen(italic_buf, w * 65536 + h, x + Form.left + 2 * 65536 + y + Form.top + skin_width);
55
 
52
 
56
  
53
  
57
  FOR (i=0;i*tile_height
54
  FOR (i=0;i*tile_height
58
    PutImage(w*3*tile_height*i+italic_buf,w,tile_height,x+shift-i+1,i*tile_height+y);
55
    PutImage(w*3*tile_height*i+italic_buf,w,tile_height,x+shift-i+1,i*tile_height+y);
59
  }
56
  }
60
  mem_Free(italic_buf);
57
  mem_Free(italic_buf);
61
}
58
}
62
>
59
>