4,7 → 4,7 |
char char_width[255]; |
dword line_start; |
byte ch; |
dword bufoff, buflen; |
dword bufoff; |
dword line_length=30; |
dword stroka_y = 5; |
dword stroka=0; |
15,8 → 15,7 |
//get font chars width, need to increase performance |
for (i=0; i<256; i++) char_width[i] = label.symbol_size(i); |
//get font buffer height |
buflen = strlen(io.buffer_data) + io.buffer_data; |
for (bufoff=io.buffer_data; bufoff<buflen; bufoff++) |
for (bufoff=io.buffer_data; ESBYTE[bufoff]; bufoff++) |
{ |
ch = ESBYTE[bufoff]; |
line_length += char_width[ch]; |
43,7 → 42,7 |
|
line_length = 30; |
line_start = io.buffer_data; |
for (bufoff=io.buffer_data; bufoff<buflen; bufoff++) |
for (bufoff=io.buffer_data; ESBYTE[bufoff]; bufoff++) |
{ |
ch = ESBYTE[bufoff]; |
line_length += char_width[ch]; |