Subversion Repositories HelenOS

Rev

Rev 3793 | Rev 4456 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3793 Rev 3795
Line 82... Line 82...
82
static void vp_switch(int vp)
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
 
87
static void vp_invalidate(int vp)
-
 
88
{
-
 
89
    async_msg_1(fbphone, FB_VIEWPORT_INVALIDATE, vp);
-
 
90
}
-
 
91
 
-
 
92
 
-
 
93
/** Create view port */
87
/** Create view port */
94
static int vp_create(unsigned int x, unsigned int y, unsigned int width,
88
static int vp_create(unsigned int x, unsigned int y, unsigned int width,
95
    unsigned int height)
89
    unsigned int height)
96
{
90
{
97
    return async_req_2_0(fbphone, FB_VIEWPORT_CREATE, (x << 16) | y,
91
    return async_req_2_0(fbphone, FB_VIEWPORT_CREATE, (x << 16) | y,
Line 161... Line 155...
161
        redraw_state(consnum);
155
        redraw_state(consnum);
162
    } else
156
    } else
163
        console_state[consnum] = CONS_SELECTED;
157
        console_state[consnum] = CONS_SELECTED;
164
    redraw_state(consnum);
158
    redraw_state(consnum);
165
 
159
 
166
    vp_invalidate(console_vp);
-
 
167
    vp_switch(console_vp);
160
    vp_switch(console_vp);
168
}
161
}
169
 
162
 
170
/** Notification function that gets called on new output to virtual console */
163
/** Notification function that gets called on new output to virtual console */
171
void gcons_notify_char(int consnum)
164
void gcons_notify_char(int consnum)
Line 360... Line 353...
360
    draw_pixmap(_binary_nameic_ppm_start,
353
    draw_pixmap(_binary_nameic_ppm_start,
361
        (size_t) &_binary_nameic_ppm_size, 5, 17);
354
        (size_t) &_binary_nameic_ppm_size, 5, 17);
362
   
355
   
363
    for (i = 0; i < CONSOLE_COUNT; i++)
356
    for (i = 0; i < CONSOLE_COUNT; i++)
364
        redraw_state(i);
357
        redraw_state(i);
365
    vp_invalidate(console_vp);
-
 
366
    vp_switch(console_vp);
358
    vp_switch(console_vp);
367
}
359
}
368
 
360
 
369
/** Creates a pixmap on framebuffer
361
/** Creates a pixmap on framebuffer
370
 *
362
 *