Subversion Repositories Kolibri OS

Rev

Rev 1971 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. //ª­®¯ª¨
  2. #define BACK            300
  3. #define FORWARD         301
  4. #define REFRESH         302
  5. #define HOME            303
  6. #define NEWTAB          304
  7. #define GOTOURL         305
  8. #define SEARCHWEB       306
  9. #define ID1             178
  10. #define ID2             177
  11.  
  12. #define WINDOWS 0
  13. #define DOS             1
  14. #define KOI             2
  15. #define UTF             3
  16.  
  17. #define DONT_LOAD       0
  18. #define LETS_LOAD       1
  19.                      
  20. byte utf100tmmv_mas[77] = "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯àáâãäåæçèéêëìíîïðñh£si\244j";
  21.  
  22.  
  23. dword get_URL_part(byte len) {
  24.         char temp1[1000];
  25.         copystr(#URL, #temp1);
  26.         temp1[len] = 0x00;
  27.         return #temp1;
  28. }
  29.  
  30. inline fastcall CopyScreen(dword EBX, ECX, EDX)
  31. {
  32.   EAX = 36;
  33.   $int  0x40;
  34. }
  35.  
  36. inline byte chTag(dword text) {return strcmp(#tag,text);}
  37.  
  38. //“ ­ á ­¥â ­ ª«®­­ëå èà¨ä⮢, ¯®í⮬㠤¥« ¥¬ ª®áâë«ì ¨§
  39. //¯ «®ç¥ª ¤«ï ¬®à®¦¥­®£® ¨ ¦¥¢ â¥«ì­®© १¨­ª¨:
  40. //‘­¨¬ ¥¬ ®¡« áâì íªà ­  ¨ ¢ë¢®¤¨¬ ¥ñ ®¡à â­® ¯®«®áª ¬¨ ᮠᬥ饭¨¥¬,
  41. //çâ® ¤ ñâ ¯¥à¥ª®á ª à⨭ª¨
  42. //à¨ ­ «¨ç¨¨ ä®­  ¨ â.¯. ¯à®ï¢¨âáï ¢áï ª®áâë«ì­®áâì à¥è¥­¨ï :)
  43.  
  44. //ç áâì ¤ ­­ëå 㦥 ¯®«ã祭  ¢ TBW - skin_width, Form.top, ¯®¤ª«î祭¨¥ memory
  45. inline void Skew(dword x,y,w,h)
  46. {
  47. dword italic_buf;
  48. int tile_height=2,//¡ã¤¥¬ ¢ë¢®¤¨âì ¤¢ã寨ªá¥«ì­ë¬¨ ¯®«®áª ¬¨
  49. i, skin_width,
  50. shift=-2;
  51.  
  52.   italic_buf = malloc(w*h*3);
  53.   skin_width = GetSkinWidth();
  54.  
  55.   CopyScreen(italic_buf, w * 65536 + h, x + Form.left + 2 * 65536 + y + Form.top + skin_width);
  56.  
  57.  
  58.   FOR (i=0;i*tile_height<h;i++){
  59.     PutImage(w*3*tile_height*i+italic_buf,w,tile_height,x+shift-i+1,i*tile_height+y);
  60.   }
  61.   free(italic_buf);
  62. }
  63.