WebView: refactoring

git-svn-id: svn://kolibrios.org@8439 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2020-12-17 23:01:09 +00:00
parent 9220a9a313
commit 64a81df7e7
12 changed files with 658 additions and 670 deletions

View File

@@ -41,7 +41,7 @@
// DATA //
// //
//===================================================//
char version[]="WebView 3.06";
char version[]="WebView 3.1";
#define DEFAULT_URL URL_SERVICE_HOMEPAGE
@@ -372,8 +372,8 @@ void draw_window()
bool BrowserWidthChanged()
{
dword source_mode_holder;
if (WB1.list.w!=DrawBuf.bufw) {
DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, 400*20);
if (WB1.list.w!=canvas.bufw) {
canvas.Init(WB1.list.x, WB1.list.y, WB1.list.w, 400*20);
if (!strncmp(history.current(),"http",4)) {
//nihuya ne izyashnoe reshenie, no pust' poka butet tak
source_mode_holder = source_mode;