Subversion Repositories HelenOS

Rev

Rev 3767 | Rev 3795 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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