Changeset b27eb71 in mainline for uspace/srv/fb/ega.c
- Timestamp:
- 2009-04-05T09:17:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9db4079
- Parents:
- f2b8cdc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fb/ega.c
rf2b8cdc rb27eb71 84 84 85 85 static unsigned attr_to_ega_style(const attrs_t *a); 86 static uint8_t ega_glyph(wchar_t ch); 86 87 87 88 static void clrscr(void) … … 144 145 } 145 146 146 static void printchar( charc, unsigned int row, unsigned int col)147 { 148 scr_addr[(row * scr_width + col) * 2] = c;147 static void printchar(wchar_t c, unsigned int row, unsigned int col) 148 { 149 scr_addr[(row * scr_width + col) * 2] = ega_glyph(c); 149 150 scr_addr[(row * scr_width + col) * 2 + 1] = style; 150 151 … … 173 174 dp = &scr_addr[2 * ((y + j) * scr_width + (x + i))]; 174 175 175 dp[0] = field->character;176 dp[0] = ega_glyph(field->character); 176 177 dp[1] = attr_to_ega_style(&field->attrs); 177 178 } … … 249 250 } 250 251 252 static uint8_t ega_glyph(wchar_t ch) 253 { 254 if (ch >= 0 && ch < 128) 255 return ch; 256 257 return '?'; 258 } 259 251 260 static void ega_client_connection(ipc_callid_t iid, ipc_call_t *icall) 252 261 { … … 254 263 ipc_callid_t callid; 255 264 ipc_call_t call; 256 charc;265 wchar_t c; 257 266 unsigned int row, col, w, h; 258 267 int bg_color, fg_color, attr;
Note:
See TracChangeset
for help on using the changeset viewer.