Subversion Repositories Kolibri OS

Rev

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

Rev 5519 Rev 5534
Line 86... Line 86...
86
				DL_Draw_Window();
86
				DL_Draw_Window();
87
				break;
87
				break;
Line 88... Line 88...
88
				
88
				
89
			default:
89
			default:
90
				if (DL_Form.width==0) || (DL_http_transfer <= 0) break;
90
				if (DL_Form.width==0) || (DL_http_transfer <= 0) break;
91
				http_process stdcall (DL_http_transfer);
91
				http_receive stdcall (DL_http_transfer);
92
				$push EAX
92
				$push EAX
93
				ESI = DL_http_transfer;
93
				ESI = DL_http_transfer;
94
				DL_progress_bar.max = ESI.http_msg.content_length;
94
				DL_progress_bar.max = ESI.http_msg.content_length;
95
				if (DL_progress_bar.value != ESI.http_msg.content_received)
95
				if (DL_progress_bar.value != ESI.http_msg.content_received)
Line 218... Line 218...
218
	StopDownloading();
218
	StopDownloading();
219
	if (strncmp(#DL_URL,"http:",5)==0)
219
	if (strncmp(#DL_URL,"http:",5)==0)
220
	{
220
	{
221
		download_state = STATE_IN_PROGRESS;
221
		download_state = STATE_IN_PROGRESS;
222
		DL_address_box.color = DL_address_box.blur_border_color = DL_address_box.focus_border_color = 0xdddDDD;
222
		DL_address_box.color = DL_address_box.blur_border_color = DL_address_box.focus_border_color = 0xdddDDD;
223
		http_get stdcall (#DL_URL, #accept_language);
223
		http_get stdcall (#DL_URL, 0, 0, #accept_language);
224
		DL_http_transfer = EAX;
224
		DL_http_transfer = EAX;
225
		DL_progress_bar.value = 0;
225
		DL_progress_bar.value = 0;
226
		DL_Draw_Window();
226
		DL_Draw_Window();
227
		if (DL_http_transfer == 0)
227
		if (DL_http_transfer == 0)
228
		{
228
		{