diff --git a/programs/cmm/TWB/absolute_url.h b/programs/cmm/TWB/absolute_url.h index caf8623b49..3623b49572 100644 --- a/programs/cmm/TWB/absolute_url.h +++ b/programs/cmm/TWB/absolute_url.h @@ -3,6 +3,7 @@ int UrlIsAbsolute(dword in) { if(!strncmp(in,"http:",5)) return true; if(!strncmp(in,"https:",6)) return true; + if(!strncmp(in,"file:",5)) return true; if(!strncmp(in,"mailto:",7)) return true; if(!strncmp(in,"ftp:",4)) return true; if(!strncmp(in,"WebView:",8)) return true; @@ -30,6 +31,15 @@ void GetAbsoluteURL(dword in_URL) } if (UrlIsAbsolute(in_URL)) return; + + IF (!strcmpn(in_URL,"//", 2)) + { + //strcpy(#newurl, "http:"); + //strcat(#newurl, in_URL); + sprintf(#newurl, "http:%s", in_URL); + strcpy(orig_URL, #newurl); + return; + } IF (!strcmpn(in_URL,"./", 2)) in_URL+=2; if (!http_transfer) diff --git a/programs/cmm/eolite/include/icons.h b/programs/cmm/eolite/include/icons.h index adbba9584b..bc7af982c8 100644 --- a/programs/cmm/eolite/include/icons.h +++ b/programs/cmm/eolite/include/icons.h @@ -5,7 +5,7 @@ void DrawIconByExtension(dword file_path, extension, xx, yy, fairing_color) char BYTE_HEAD_FILE[4]; char ext[512]; int i; - dword icon_n=0; + dword icon_n=2; // set default icon if (extension) { diff --git a/programs/cmm/lib/kolibri.h b/programs/cmm/lib/kolibri.h index 724369fe70..c1d92ee23d 100644 --- a/programs/cmm/lib/kolibri.h +++ b/programs/cmm/lib/kolibri.h @@ -476,11 +476,14 @@ inline fastcall dword SetWindowLayerBehaviour(EDX, ESI) $int 0x40 } -void PutPaletteImage(dword EBX,w,h,x,y,ESI,EDI) +:void PutPaletteImage(dword inbuf,w,h,x,y,bits,pal) { EAX = 65; + EBX = inbuf; ECX = w<<16+h; EDX = x<<16+y; + ESI = bits; + EDI = pal; EBP = 0; $int 0x40 } diff --git a/programs/cmm/lib/strings.h b/programs/cmm/lib/strings.h index 0220addbf1..3e6383654b 100644 --- a/programs/cmm/lib/strings.h +++ b/programs/cmm/lib/strings.h @@ -901,7 +901,7 @@ inline signed strcoll(dword text1,text2) return 0; } -replace_char(dword in_str, char from_char, to_char, int length) { +:replace_char(dword in_str, char from_char, to_char, int length) { int i; for (i=0; i