Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8424 → Rev 8425

/programs/cmm/browser/TWB/TWB.c
304,6 → 304,11
Paint();
NewLine();
list.count = draw_y;
 
DrawBuf.bufh = math.max(list.visible, draw_y);
debugval("DrawBuf.bufh", DrawBuf.bufh);
buf_data = realloc(buf_data, DrawBuf.bufh * DrawBuf.bufw * 4 + 8);
 
list.CheckDoesValuesOkey();
anchors.current = NULL;
custom_encoding = -1;
/programs/cmm/browser/WebView.c
41,7 → 41,7
// DATA //
// //
//===================================================//
char version[]="WebView 3.04";
char version[]="WebView 3.06";
 
#define DEFAULT_URL URL_SERVICE_HOMEPAGE
 
231,10 → 231,12
if (http_get_type==PAGE) {
history.add(http.cur_url);
cache.add(http.cur_url, http.content_pointer, http.content_received, PAGE);
LoadInternalPage(http.content_pointer, http.content_received);
free(http.content_pointer);
LoadInternalPage(cache.current_buf, cache.current_size);
}
else if (http_get_type==IMG) {
cache.add(cur_img_url, http.content_pointer, http.content_received, IMG);
free(http.content_pointer);
GetImg(false);
}
}
/programs/cmm/browser/cache.h
26,6 → 26,9
url.add(_url);
size.add(_size);
type.add(_type);
 
current_buf = data_pointer;
current_size = _size;
}
 
bool _cache::has(dword _link)
/programs/cmm/downloader/dl.c
54,7 → 54,6
}
@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER + EVM_STACK);
@SetWindowLayerBehaviour(-1, ZPOS_ALWAYS_TOP);
loop() switch(@WaitEvent())
{
case evMouse: edit_box_mouse stdcall (#ed); break;
/programs/cmm/lib/draw_buf.h
128,7 → 128,6
 
void DrawBufer::IncreaseBufSize()
{
static dword alloc_counter;
static dword bufh_initial;
dword alloc_size;
dword free_ram_size;
135,19 → 134,16
char error_str[256];
 
if (!buf_data) {
alloc_counter = 1;
bufh_initial = bufh;
alloc_size = bufw * bufh * 4 + 8;
alloc_size = bufh * bufw * 4 + 8;
buf_data = malloc(alloc_size);
}
else {
alloc_counter++;
bufh = bufh_initial * alloc_counter;
alloc_size = bufw * bufh * 4 + 8;
} else {
if (bufh_initial != bufh) bufh_initial = bufh;
bufh += 4096*1600/bufw; //+50 Mb
alloc_size = bufh * bufw * 4 + 8;
buf_data = realloc(buf_data, alloc_size);
Fill(alloc_counter - 1 * bufw * bufh_initial * 4 + 8, fill_color);
Fill(bufh_initial * bufw * 4 + 8, fill_color);
}
 
bufh_initial = bufh;
free_ram_size = GetFreeRAM() * 1024;
if (alloc_size > free_ram_size) {
sprintf(#error_str, #draw_buf_not_enaught_ram, alloc_size - free_ram_size/1048576);
156,5 → 152,4
}
 
 
 
#endif
/programs/cmm/sysmon/sysmon.c
106,9 → 106,7
void main()
{
int btn;
//dword cpu_frequency = GetCpuFrequency()/1000;
load_lib();
@SetWindowLayerBehaviour(-1, ZPOS_ALWAYS_TOP);
@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
loop() switch(@WaitEventTimeout(50))
{