WebView 1.49: two bugs fixed

git-svn-id: svn://kolibrios.org@6686 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2016-11-07 20:57:40 +00:00
parent 5674a7aa14
commit 50bcfc998b
3 changed files with 8 additions and 6 deletions

View File

@ -188,7 +188,7 @@ void TWebBrowser::Prepare(){
if (bukva == '\9') || (bukva == '\x0a') || (bukva == '\x0d') bukva = ' ';
if (!ignor_param) && (bukva <>' ')
{
if (strlen(#tag)<sizeof(tag)) chrcat(#tag, bukva);
if (strlen(#tag)+1<sizeof(tag)) chrcat(#tag, bukva);
}
else
{
@ -201,12 +201,11 @@ void TWebBrowser::Prepare(){
if (tag[strlen(#tag)-1]=='/') tag[strlen(#tag)-1]=NULL; //for br/
if (tagparam) GetNextParam();
Perenos();
DrawStyle();
line = NULL;
if (tag) SetStyle(); //îáğàáîòêà òåãîâ
strcpy(#oldtag, #tag);
strlcpy(#oldtag, #tag, sizeof(oldtag));
tag = attr = tagparam = ignor_param = NULL;
break;
default:

View File

@ -31,7 +31,7 @@
char homepage[] = FROM "html\\homepage.htm";
#ifdef LANG_RUS
char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 1.48";
char version[]=" ’¥ªáâ®¢ë© ¡à ã§¥à 1.49";
?define IMAGES_CACHE_CLEARED "Šíè ª à⨭®ª ®ç¨é¥­"
?define T_LAST_SLIDE "<EFBFBD>â® ¯®á«¥¤­¨© á« ©¤"
char loading[] = "‡ £à㧪  áâà ­¨æë...<br>";
@ -269,7 +269,7 @@ void SetElementSizes()
WB1.list.column_max = WB1.list.w - scroll_wv.size_x / WB1.list.font_w;
WB1.list.visible = WB1.list.h - 5 / WB1.list.item_h;
if (WB1.list.w!=WB1.DrawBuf.bufw) {
WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.h * 30);
WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, 4096 * 7400 / WB1.list.w);
Scan(REFRESH_BUTTON);
}
}

View File

@ -52,7 +52,10 @@ void SelectList_ProcessMouse()
}
void SelectList_DrawBorder() {
DrawRectangle3D(select_list.x-2, select_list.y-2, select_list.w+3+scroll1.size_x, select_list.h+3, system.color.work_dark, system.color.work_light);
DrawRectangle3D(select_list.x-2, select_list.y-2,
select_list.w+3+scroll1.size_x, select_list.h+3,
MixColors(system.color.work, system.color.work_dark, 125),
system.color.work_light);
DrawRectangle(select_list.x-1, select_list.y-1, select_list.w+1+scroll1.size_x, select_list.h+1, system.color.work_graph);
}