Rev 8383 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8383 | Rev 8871 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | #include "../lib/fs.h" |
24 | #include "../lib/fs.h" |
25 | #endif |
25 | #endif |
Line 26... | Line 26... | ||
26 | 26 | ||
Line 27... | Line -... | ||
27 | #include "../lib/patterns/rgb.h" |
- | |
28 | 27 | #include "../lib/patterns/rgb.h" |
|
29 | - | ||
30 | #define DEFAULT_FONT "/sys/fonts/Tahoma.kf" |
- | |
31 | 28 | ||
32 | #ifndef KFONT_BPP |
- | |
Line 33... | Line 29... | ||
33 | #define KFONT_BPP 4 |
29 | #define DEFAULT_FONT "/sys/fonts/Tahoma.kf" |
Line 34... | Line 30... | ||
34 | #endif |
30 | #define KFONT_BPP 4 |
35 | 31 | ||
Line 293... | Line 289... | ||
293 | return WriteIntoWindow(w-size.width/2+x-1, _y, _background, _color, font_size, text1); |
289 | return WriteIntoWindow(w-size.width/2+x-1, _y, _background, _color, font_size, text1); |
294 | } |
290 | } |
Line 295... | Line 291... | ||
295 | 291 | ||
296 | :void KFONT::ShowBuffer(dword _x, _y) |
292 | :void KFONT::ShowBuffer(dword _x, _y) |
297 | { |
293 | { |
298 | if (4==KFONT_BPP) PutPaletteImage(raw, size.width, size.height, _x, _y, 32, 0); |
- | |
299 | //if (1==KFONT_BPP) PutPaletteImage(raw, size.width, size.height, _x, _y, 8, #palette); |
294 | PutPaletteImage(raw, size.width, size.height, _x, _y, 32, 0); |
Line 300... | Line 295... | ||
300 | } |
295 | } |
301 | 296 | ||
302 | :void KFONT::ShowBufferPart(dword _x, _y, _w, _h, _buf_offset) |
297 | :void KFONT::ShowBufferPart(dword _x, _y, _w, _h, _buf_offset) |
303 | { |
- | |
304 | if (4==KFONT_BPP) PutPaletteImage(_buf_offset * KFONT_BPP + raw, _w, _h, _x, _y, 32, 0); |
298 | { |
Line 305... | Line 299... | ||
305 | //if (1==KFONT_BPP) PutPaletteImage(_buf_offset * KFONT_BPP + raw, _w, _h, _x, _y, 8, #palette); |
299 | PutPaletteImage(_buf_offset * KFONT_BPP + raw, _w, _h, _x, _y, 32, 0); |
306 | } |
300 | } |