Changeset 76fca31 in mainline for uspace/srv/console/gcons.c
- Timestamp:
- 2008-12-16T19:02:07Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5ae4443
- Parents:
- 8fe5980
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/console/gcons.c
r8fe5980 r76fca31 82 82 static void vp_switch(int vp) 83 83 { 84 async_msg_1(fbphone, FB_VIEWPORT_SWITCH, vp);84 async_msg_1(fbphone, FB_VIEWPORT_SWITCH, vp); 85 85 } 86 86 … … 106 106 static void tran_putch(char c, int row, int col) 107 107 { 108 async_msg_3(fbphone, FB_ TRANS_PUTCHAR, c, row, col);108 async_msg_3(fbphone, FB_PUTCHAR, c, row, col); 109 109 } 110 110 … … 190 190 else 191 191 console_state[consnum] = CONS_DISCONNECTED; 192 192 193 193 if (active_console == KERNEL_CONSOLE) 194 194 return; 195 195 196 196 redraw_state(consnum); 197 197 vp_switch(console_vp); … … 218 218 void gcons_in_kernel(void) 219 219 { 220 if (console_state[active_console] == CONS_DISCONNECTED_SEL)221 console_state[active_console] = CONS_DISCONNECTED;222 else223 console_state[active_console] = CONS_IDLE;224 redraw_state(active_console);225 226 220 if (animation != -1) 227 221 async_msg_1(fbphone, FB_ANIM_STOP, animation); 228 229 active_console = KERNEL_CONSOLE; /* Set to kernel console */222 223 active_console = KERNEL_CONSOLE; 230 224 vp_switch(0); 231 225 } … … 343 337 extern char _binary_nameic_ppm_start[0]; 344 338 extern int _binary_nameic_ppm_size; 345 /** Redraws console graphics */ 346 static void gcons_redraw_console(void) 339 340 /** Redraws console graphics */ 341 void gcons_redraw_console(void) 347 342 { 348 343 int i; 349 344 350 345 if (!use_gcons) 351 346 return; … … 358 353 draw_pixmap(_binary_nameic_ppm_start, 359 354 (size_t) &_binary_nameic_ppm_size, 5, 17); 360 355 361 356 for (i = 0; i < CONSOLE_COUNT; i++) 362 357 redraw_state(i); … … 460 455 int i; 461 456 int status_start = STATUS_START; 462 457 463 458 fbphone = phone; 464 459 465 460 rc = async_req_0_2(phone, FB_GET_RESOLUTION, &xres, &yres); 466 461 if (rc) 467 462 return; 468 463 469 if ( xres < 800 || yres < 600)470 return; 471 464 if ((xres < 800) || (yres < 600)) 465 return; 466 472 467 /* create console viewport */ 473 468 /* Align width & height to character size */ … … 507 502 508 503 make_anim(); 509 504 510 505 use_gcons = 1; 511 506 console_state[0] = CONS_DISCONNECTED_SEL; … … 513 508 gcons_redraw_console(); 514 509 } 515 510 516 511 /** @} 517 512 */ 518
Note:
See TracChangeset
for help on using the changeset viewer.