Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1552 → Rev 1551

/uspace/trunk/console/gcons.c
125,9 → 125,8
{
if (!use_gcons)
return;
 
if (active_console != -1)
draw_stat(active_console, CONS_IDLE);
draw_stat(active_console, CONS_IDLE);
active_console = consnum;
draw_stat(consnum, CONS_ACTIVE);
console_has_input[consnum] = 0;
135,7 → 134,6
vp_switch(console_vp);
}
 
/** Notification function that gets called on new output to virtual console */
void gcons_notify_char(int consnum)
{
if (!use_gcons)
145,31 → 143,11
return;
 
console_has_input[consnum] = 1;
 
if (active_console == -1)
return;
 
draw_stat(consnum, CONS_HAS_INPUT);
vp_switch(console_vp);
 
}
 
/** Change to kernel console */
void gcons_in_kernel(void)
{
draw_stat(active_console, CONS_IDLE);
active_console = -1; /* Set to kernel console */
vp_switch(0);
}
 
/** Draw a PPM pixmap to framebuffer
*
* @param logo Pointer to PPM data
* @param size Size of PPM data
* @param x Coordinate of upper left corner
* @param y Coordinate of upper left corner
*/
static void draw_pixmap(char *logo, size_t size, int x, int y)
{
char *shm;