Subversion Repositories Kolibri OS

Rev

Rev 3081 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3081 Rev 3107
Line 312... Line 312...
312
	
312
	
Line 313... Line 313...
313
	if (!filesize)
313
	if (!filesize)
314
	{
314
	{
315
		DrawBar(left, top, width+4, height, 0xFFFFFF); //çàêðàøèâàåì âñ¸ äîíèçó
315
		DrawBar(left, top, width+4, height, 0xFFFFFF); //çàêðàøèâàåì âñ¸ äîíèçó
316
		if (GetProcessSlot(downloader_id)<>0) WriteText(left + 10, top + 18, 0x80, 0, "Loading...", 0);
316
		if (GetProcessSlot(downloader_id)<>0) WriteText(left + 10, top + 18, 0x80, 0, "Loading...");
317
		else
317
		else
318
		{
318
		{
319
			WriteText(left + 10, top + 18, 0x80, 0, "Page not found. May be, URL contains some errors.", 0);
319
			WriteText(left + 10, top + 18, 0x80, 0, "Page not found. May be, URL contains some errors.");
320
			if (!strcmp(get_URL_part(5),"http:"))) WriteText(left + 10, top + 32, 0x80, 0, "Or Internet unavilable for your configuration.", 0);
320
			if (!strcmp(get_URL_part(5),"http:"))) WriteText(left + 10, top + 32, 0x80, 0, "Or Internet unavilable for your configuration.");
321
		}
321
		}
322
		//return;
322
		//return;
323
	}
323
	}
324
	else
324
	else
325
		ParseHTML(buf);
325
		ParseHTML(buf);
Line 549... Line 549...
549
			text_out stdcall (#line, #fontlol, 17, text_colors[text_color_index], start_x, start_y-3);
549
			text_out stdcall (#line, #fontlol, 17, text_colors[text_color_index], start_x, start_y-3);
550
		}
550
		}
551
		else
551
		else
552
		{
552
		{
553
			WriteText(start_x, start_y, 0x80, text_colors[text_color_index], #line, 0);
553
			WriteText(start_x, start_y, 0x80, text_colors[text_color_index], #line);
554
			IF (b_text)	{ $add ebx, 1<<16   $int 0x40 }
554
			IF (b_text)	{ $add ebx, 1<<16   $int 0x40 }
555
		}
555
		}
556
		IF (i_text) Skew(start_x, start_y, line_length+6, 10);
556
		IF (i_text) Skew(start_x, start_y, line_length+6, 10);
557
		IF (s_text) DrawBar(start_x, start_y + 4, line_length, 1, text_colors[text_color_index]);
557
		IF (s_text) DrawBar(start_x, start_y + 4, line_length, 1, text_colors[text_color_index]);
558
		IF (u_text) DrawBar(start_x, start_y + 8, line_length, 1, text_colors[text_color_index]);
558
		IF (u_text) DrawBar(start_x, start_y + 8, line_length, 1, text_colors[text_color_index]);
559
		IF (link) {
559
		IF (link) {
560
			DefineButton(start_x-2, start_y, line_length + 3, 9, blink + BT_HIDE, 0xB5BFC9);
560
			UnsafeDefineButton(start_x-2, start_y, line_length + 3, 9, blink + BT_HIDE, 0xB5BFC9);
561
			DrawBar(start_x, start_y + 8, line_length, 1, text_colors[text_color_index]);
561
			DrawBar(start_x, start_y + 8, line_length, 1, text_colors[text_color_index]);
562
		}
562
		}
563
		stolbec += strlen(#line);
563
		stolbec += strlen(#line);
564
	}
564
	}
565
}
565
}
566
 
566