Subversion Repositories Kolibri OS

Rev

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

Rev 6053 Rev 7285
Line 37... Line 37...
37
		strcat(history_page, "
\n");
37
		strcat(history_page, "
\n");
38
	}
38
	}
39
	return history_page;
39
	return history_page;
40
}
40
}
Line -... Line 41...
-
 
41
 
-
 
42
char char_width[255];
-
 
43
 
-
 
44
void get_label_symbols_size()
-
 
45
{
-
 
46
	int i;
-
 
47
	kfont.changeSIZE();
-
 
48
	for (i=0; i<256; i++) char_width[i] = kfont.symbol_size(i);
-
 
49
}
-
 
50
 
-
 
51
int get_label_len(dword _text) 
-
 
52
{
-
 
53
	int len=0;
-
 
54
	byte ch;
-
 
55
	loop () {
-
 
56
		ch = ESBYTE[_text];
-
 
57
		if (!ch) return len;
-
 
58
		len += char_width[ch];
-
 
59
		_text++;
-
 
60
	}
Line 41... Line 61...
41
 
61
}
42
 
62
 
43
enum {
63
enum {
44
	STEP_1_DOWNLOAD_PAGE         =   0,
64
	STEP_1_DOWNLOAD_PAGE         =   0,