forked from KolibriOS/kolibrios
Text-based Browser 23.67 aka HTML Viewer v0.67
git-svn-id: svn://kolibrios.org@2085 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
//ª®¯ª¨
|
||||
#define BACK 300
|
||||
#define FORWARD 301
|
||||
#define REFRESH 302
|
||||
#define FORWARD 301
|
||||
#define REFRESH 302
|
||||
#define HOME 303
|
||||
#define GOTOURL 305
|
||||
#define NEWTAB 304
|
||||
#define GOTOURL 305
|
||||
#define SEARCHWEB 306
|
||||
#define ID1 178
|
||||
#define ID2 177
|
||||
@@ -26,6 +27,11 @@ dword get_URL_part(byte len) {
|
||||
return #temp1;
|
||||
}
|
||||
|
||||
inline fastcall CopyScreen(dword EBX, ECX, EDX)
|
||||
{
|
||||
EAX = 36;
|
||||
$int 0x40;
|
||||
}
|
||||
|
||||
inline byte chTag(dword text) {return strcmp(#tag,text);}
|
||||
|
||||
@@ -43,20 +49,14 @@ int tile_height=2,//
|
||||
i, skin_width,
|
||||
shift=-2;
|
||||
|
||||
skin_width = GetSkinWidth();
|
||||
Form.GetInfo(SelfInfo);
|
||||
italic_buf = malloc(w*h*3);
|
||||
//ebx = 㪠§ â¥«ì ¯à¥¤¢ à¨â¥«ì® ¢ë¤¥«¥ãî ®¡« áâì ¯ ¬ïâ¨, ªã¤ ¡ã¤¥â ¯®¬¥é¥® ¨§®¡à ¦¥¨¥ ¢ ä®à¬ ⥠BBGGRRBBGGRR...
|
||||
EBX = italic_buf;
|
||||
//ecx = [à §¬¥à ¯® ®á¨ x]*65536 + [à §¬¥à ¯® ®á¨ y]
|
||||
ECX = w * 65536 + h;
|
||||
//edx = [ª®®à¤¨ â ¯® ®á¨ x]*65536 + [ª®®à¤¨ â ¯® ®á¨ y]
|
||||
EDX = x + Form.left * 65536 + y + Form.top + skin_width;
|
||||
EAX = 36;
|
||||
$int 0x40;
|
||||
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,i*tile_height+y);
|
||||
PutImage(w*3*tile_height*i+italic_buf,w,tile_height,x+shift-i+1,i*tile_height+y);
|
||||
}
|
||||
free(italic_buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user