Subversion Repositories Kolibri OS

Rev

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

Rev 5554 Rev 5576
Line 29... Line 29...
29
	dword	sizehi;
29
	dword	sizehi;
30
	char	name[518];
30
	char	name[518];
31
};
31
};
Line 32... Line 32...
32
 
32
 
33
 
33
 
-
 
34
:void DrawDate(dword x, y, color, in_date)
34
:void DrawDate(dword x, y, color, dword in_date)
35
{
35
{
36
	//char text[10];
36
	EDI = in_date;
37
	EDI = in_date;
37
	EAX = 47;
38
	EAX = 47;
38
	EBX = 2<<16;
39
	EBX = 2<<16;
Line 45... Line 46...
45
	$int 0x40;
46
	$int 0x40;
46
	EDX += 18<<16;
47
	EDX += 18<<16;
47
	EBX = 4<<16;
48
	EBX = 4<<16;
48
	ECX = EDI.date.year;
49
	ECX = EDI.date.year;
49
	$int 0x40;
50
	$int 0x40;
-
 
51
	
-
 
52
	//sprintf(#text,"%d.%d.%d",EDI.date.day,EDI.date.month,EDI.date.year);
-
 
53
	//WriteText(x, y, 0x80, 0x80<<24+color, #text);
50
}
54
}
Line 51... Line 55...
51
 
55
 
52
 
56
 
Line 295... Line 299...
295
		strcat(#absolute_path, relative_path);
299
		strcat(#absolute_path, relative_path);
296
	}
300
	}
297
	return #absolute_path;
301
	return #absolute_path;
298
}
302
}
Line 299... Line 303...
299
 
303
 
300
:dword ConvertSize(unsigned int bytes)
304
:dword ConvertSize(dword bytes)
301
{
305
{
302
  unsigned char size_prefix[8], size_nm[4];
306
  byte size_prefix[8], size_nm[4];
303
  if (bytes>=1073741824) strcpy(#size_nm, " Gb");
307
  if (bytes>=1073741824) strcpy(#size_nm, "Gb");
304
  else if (bytes>=1048576) strcpy(#size_nm, " Mb");
308
  else if (bytes>=1048576) strcpy(#size_nm, "Mb");
305
  else if (bytes>=1024) strcpy(#size_nm, " Kb");
309
  else if (bytes>=1024) strcpy(#size_nm, "Kb");
306
  else strcpy(#size_nm, " b ");
310
  else strcpy(#size_nm, "b");
307
  while (bytes>1023) bytes/=1024;
311
  while (bytes>1023) bytes/=1024;
308
  itoa_(#size_prefix, bytes);
312
  itoa_(#size_prefix, bytes);
-
 
313
  strcat(#size_prefix, #size_nm);
309
  strcat(#size_prefix, #size_nm);
314
  //sprintf(#size_prefix,"%s","123");
310
  return #size_prefix;
315
  return #size_prefix;
Line 311... Line 316...
311
}
316
}
312
 
317