Rev 5231 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5231 | Rev 5238 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | 14 | ||
15 | // Wait for screen draw (vertical sync) |
15 | // Wait for screen draw (vertical sync) |
16 | inline void vsync() { |
16 | inline void vsync() { |
17 | __asm__ __volatile__("int $0x40"::"a"(18),"b"(14)); |
17 | __asm__ __volatile__("int $0x40"::"a"(18),"b"(14)); |
- | 18 | } |
|
- | 19 | ||
- | 20 | // Get text length in pixels |
|
- | 21 | inline __u32 text_length_px(__u32 len) |
|
- | 22 | { |
|
- | 23 | return len * FONT_WIDTH + len; |