Rev 4153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4153 | Rev 4263 | ||
|---|---|---|---|
| Line 41... | Line 41... | ||
| 41 | * scr->position_x and scr->position_y. |
41 | * scr->position_x and scr->position_y. |
| 42 | * |
42 | * |
| 43 | * @param scr screenbuffer |
43 | * @param scr screenbuffer |
| 44 | * @param c stored character |
44 | * @param c stored character |
| 45 | */ |
45 | */ |
| 46 | void screenbuffer_putchar(screenbuffer_t *scr, char c) |
46 | void screenbuffer_putchar(screenbuffer_t *scr, wchar_t ch) |
| 47 | { |
47 | { |
| 48 | keyfield_t *field; |
48 | keyfield_t *field; |
| 49 | 49 | ||
| 50 | field = get_field_at(scr, scr->position_x, scr->position_y); |
50 | field = get_field_at(scr, scr->position_x, scr->position_y); |
| 51 | 51 | ||
| 52 | field->character = c; |
52 | field->character = ch; |
| 53 | field->attrs = scr->attrs; |
53 | field->attrs = scr->attrs; |
| 54 | } |
54 | } |
| 55 | 55 | ||
| 56 | /** Initilize screenbuffer. Allocate space for screen content in accordance to given size. |
56 | /** Initilize screenbuffer. Allocate space for screen content in accordance to given size. |
| 57 | * @param scr initialized screenbuffer |
57 | * @param scr initialized screenbuffer |