Rev 4457 | Rev 4548 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4457 | Rev 4525 | ||
|---|---|---|---|
| Line 147... | Line 147... | ||
| 147 | static void printchar(wchar_t c, unsigned int col, unsigned int row) |
147 | static void printchar(wchar_t c, unsigned int col, unsigned int row) |
| 148 | { |
148 | { |
| 149 | scr_addr[(row * scr_width + col) * 2] = ega_glyph(c); |
149 | scr_addr[(row * scr_width + col) * 2] = ega_glyph(c); |
| 150 | scr_addr[(row * scr_width + col) * 2 + 1] = style; |
150 | scr_addr[(row * scr_width + col) * 2 + 1] = style; |
| 151 | 151 | ||
| 152 | cursor_goto(row, col + 1); |
152 | cursor_goto(col + 1, row); |
| 153 | } |
153 | } |
| 154 | 154 | ||
| 155 | /** Draw text data to viewport. |
155 | /** Draw text data to viewport. |
| 156 | * |
156 | * |
| 157 | * @param vport Viewport id |
157 | * @param vport Viewport id |
| Line 314... | Line 314... | ||
| 314 | } |
314 | } |
| 315 | draw_text_data(interbuf, col, row, w, h); |
315 | draw_text_data(interbuf, col, row, w, h); |
| 316 | retval = 0; |
316 | retval = 0; |
| 317 | break; |
317 | break; |
| 318 | case FB_GET_CSIZE: |
318 | case FB_GET_CSIZE: |
| 319 | ipc_answer_2(callid, EOK, scr_height, scr_width); |
319 | ipc_answer_2(callid, EOK, scr_width, scr_height); |
| 320 | continue; |
320 | continue; |
| 321 | case FB_CLEAR: |
321 | case FB_CLEAR: |
| 322 | clrscr(); |
322 | clrscr(); |
| 323 | retval = 0; |
323 | retval = 0; |
| 324 | break; |
324 | break; |