Changeset d530237a in mainline for console/gcons.c
- Timestamp:
- 2006-06-04T11:28:47Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67ec84b
- Parents:
- a78e273
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
console/gcons.c
ra78e273 rd530237a 100 100 } 101 101 102 static void putch(char c, int row, int col) 103 { 104 nsend_call_3(fbphone, FB_PUTCHAR, c, row, col); 105 } 106 102 /** Transparent putchar */ 103 static void tran_putch(char c, int row, int col) 104 { 105 nsend_call_3(fbphone, FB_TRANS_PUTCHAR, c, row, col); 106 } 107 108 /** Redraw the button showing state of a given console */ 107 109 static void redraw_state(int consnum) 108 110 { … … 118 120 snprintf(data, 5, "%d", consnum+1); 119 121 for (i=0;data[i];i++) 120 putch(data[i], 1, 2+i);122 tran_putch(data[i], 1, 2+i); 121 123 } 122 124 } … … 171 173 } 172 174 175 /** Notification function called on console connect */ 173 176 void gcons_notify_connect(int consnum) 174 177 { … … 239 242 extern char _binary_nameic_ppm_start[0]; 240 243 extern int _binary_nameic_ppm_size; 244 /** Redraws console graphics */ 241 245 static void gcons_redraw_console(void) 242 246 { … … 253 257 draw_pixmap(_binary_nameic_ppm_start, (size_t)&_binary_nameic_ppm_size, 5, 17); 254 258 255 256 259 for (i=0;i < CONSOLE_COUNT; i++) 257 260 redraw_state(i); … … 259 262 } 260 263 264 /** Creates a pixmap on framebuffer 265 * 266 * @param data PPM data 267 * @param size PPM data size 268 * @return Pixmap identification 269 */ 261 270 static int make_pixmap(char *data, int size) 262 271 {
Note:
See TracChangeset
for help on using the changeset viewer.