Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7782 → Rev 7783

/programs/cmm/lib/gui/more_less_box.h
23,6 → 23,7
 
:bool more_less_box::click(unsigned id)
{
if (disabled) return 0;
if (id==id_dec) { value = math.max(value-click_delta, min); redraw(); return 1; }
if (id==id_inc) { value = math.min(value+click_delta, max); redraw(); return 1; }
return 0;
42,7 → 43,7
{
#define VALUE_FIELD_W 34
#define SIZE 18
dword text_col = system.color.work_text;
dword text_col;
dword value_text = itoa(value);
 
check_values();
55,11 → 56,12
{
DrawRectangle(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xffffff);
DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xCCCccc);
text_col = MixColors(system.color.work, system.color.work_text, 128);
text_col = system.color.work_graph;
}
else
{
DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xffffff);
text_col = system.color.work_text;
}
 
WriteText( -strlen(value_text)+3*8 + x+6, SIZE / 2 + y -6, 0x90, 0x333333, value_text);
/programs/cmm/lib/obj/libimg.h
219,11 → 219,13
}
else {
if (CreateFile(encoded_size, encoded_data, _path) == 0) {
sprintf(#save_success_message, "'File saved as %s' -O", _path);
strcpy(#save_success_message, "'File saved as ");
strcat(#save_success_message, _path);
strcat(#save_success_message, "' -O");
notify(#save_success_message);
}
else {
notify("'Error saving image file!\nProbably not enought space or file system is not writable!\nPlease, check saving path.' -E");
notify("'Error saving image file!\nNot enough space? Path wrong?\nFile system is not writable?..' -E");
}
}
}
/programs/cmm/lib/strings.h
867,7 → 867,6
strlcpy(buf,"0x00000000",10);
buf+=10;
l=buf;
debugval("tmp", tmp);
while(tmp)
{
$dec buf