Rev 7798 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7798 | Rev 7853 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | int get_label_width(); |
60 | int get_label_width(); |
Line 61... | Line 61... | ||
61 | 61 | ||
62 | void ApplySmooth(); |
62 | void ApplySmooth(); |
63 | int WriteIntoWindow(); |
63 | int WriteIntoWindow(); |
64 | int WriteIntoWindowCenter(); |
64 | int WriteIntoWindowCenter(); |
65 | void WriteIntoBuffer(); |
65 | dword WriteIntoBuffer(); |
66 | void ShowBuffer(); |
66 | void ShowBuffer(); |
67 | void ShowBufferPart(); |
67 | void ShowBufferPart(); |
Line 68... | Line 68... | ||
68 | } kfont; |
68 | } kfont; |
Line 239... | Line 239... | ||
239 | DSDWORD[i+KFONT_BPP+line_w] = dark_background; |
239 | DSDWORD[i+KFONT_BPP+line_w] = dark_background; |
240 | } |
240 | } |
241 | } |
241 | } |
242 | } |
242 | } |
Line 243... | Line 243... | ||
243 | 243 | ||
244 | :void KFONT::WriteIntoBuffer(int x,y,w,h; dword _background, _color; byte font_size; dword text1) |
244 | :dword KFONT::WriteIntoBuffer(int x,y,w,h; dword _background, _color; byte font_size; dword text1) |
245 | { |
245 | { |
246 | dword new_raw_size; |
246 | dword new_raw_size; |
Line 247... | Line 247... | ||
247 | if(!text1)return; |
247 | if(!text1)return; |
Line 271... | Line 271... | ||
271 | { |
271 | { |
272 | x+=symbol(x,y,DSBYTE[text1], raw); |
272 | x+=symbol(x,y,DSBYTE[text1], raw); |
273 | if(bold)x+=math.ceil(size.pt/17); |
273 | if(bold)x+=math.ceil(size.pt/17); |
274 | text1++; |
274 | text1++; |
275 | } |
275 | } |
276 | return; |
276 | return x; |
277 | } |
277 | } |
Line 278... | Line 278... | ||
278 | 278 | ||
279 | :int KFONT::WriteIntoWindow(int x,y; dword _background, _color; byte font_size; dword text1) |
279 | :int KFONT::WriteIntoWindow(int x,y; dword _background, _color; byte font_size; dword text1) |
280 | { |
280 | { |