Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7521 → Rev 7525

/programs/cmm/browser/download_manager.h
78,10 → 78,11
default:
if (!downloader.MonitorProgress()) break;
pb.max = downloader.httpd.content_length;
if (pb.value != downloader.httpd.content_received)
pb.max = downloader.httpd.content_length / 100;
EDI = downloader.httpd.content_received/100;
if (pb.value != EDI)
{
pb.value = downloader.httpd.content_received;
pb.value = EDI;
progressbar_draw stdcall(#pb);
DrawDownloading();
}
154,6 → 155,7
DL_Draw_Window();
}
 
/*
struct TIME
{
dword old;
180,6 → 182,7
}
else time.old = time.cur;
}
*/
void DrawDownloading()
{
/programs/cmm/txtread/prepare_page.h
3,6 → 3,8
DRAW_BUF
};
 
#define DRAW_PADDING 12
 
void Parcer(byte mode)
{
dword bufoff, buflen;
9,7 → 11,7
byte ch;
char line[4096]=0;
int srch_pos;
dword stroka_y=5;
dword stroka_y=DRAW_PADDING-3;
dword line_length=30;
dword line_start=io.buffer_data;
 
34,7 → 36,7
if (mode==DRAW_BUF) {
EBX = bufoff-line_start;
strlcpy(#line, line_start, EBX);
kfont.WriteIntoBuffer(8,stroka_y,list.w,kfont.size.height, bg_color, text_color, kfont.size.pt, #line);
kfont.WriteIntoBuffer(DRAW_PADDING,stroka_y,list.w,kfont.size.height, bg_color, text_color, kfont.size.pt, #line);
stroka_y += list.item_h;
line_start = bufoff;
line_length = 30;
42,7 → 44,7
}
}
if (mode==COUNT_BUF_HEIGHT) list.count+=2;
if (mode==DRAW_BUF) kfont.WriteIntoBuffer(8,stroka_y,list.w,kfont.size.height, bg_color, text_color, kfont.size.pt, line_start);
if (mode==DRAW_BUF) kfont.WriteIntoBuffer(DRAW_PADDING,stroka_y,list.w,kfont.size.height, bg_color, text_color, kfont.size.pt, line_start);
}
 
void PreparePage()
52,7 → 54,7
Parcer(COUNT_BUF_HEIGHT);
//draw text in buffer
list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, kfont.size.pt+4);
list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, kfont.size.pt+6);
if (list.count < list.visible) list.count = list.visible;
kfont.size.height = list.count+1*list.item_h;
kfont.raw_size = 0;