Subversion Repositories HelenOS-historic

Rev

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

Rev 1668 Rev 1689
Line 87... Line 87...
87
 
87
 
88
/** Create view port */
88
/** Create view port */
89
static int vp_create(unsigned int x, unsigned int y,
89
static int vp_create(unsigned int x, unsigned int y,
90
             unsigned int width, unsigned int height)
90
             unsigned int width, unsigned int height)
91
{
91
{
92
    /* Init function, use ipc_call_sync */
-
 
93
    return ipc_call_sync_2(fbphone, FB_VIEWPORT_CREATE,
92
    return async_req_2(fbphone, FB_VIEWPORT_CREATE,
94
                   (x << 16) | y, (width << 16) | height,
93
               (x << 16) | y, (width << 16) | height,
95
                   NULL, NULL);
94
               NULL, NULL);
96
}
95
}
97
 
96
 
98
static void clear(void)
97
static void clear(void)
99
{
98
{
100
    async_msg(fbphone, FB_CLEAR, 0);
99
    async_msg(fbphone, FB_CLEAR, 0);
Line 380... Line 379...
380
    int i;
379
    int i;
381
    int status_start = STATUS_START;
380
    int status_start = STATUS_START;
382
 
381
 
383
    fbphone = phone;
382
    fbphone = phone;
384
 
383
 
385
    rc = ipc_call_sync_2(phone, FB_GET_RESOLUTION, 0, 0, &xres, &yres);
384
    rc = async_req_2(phone, FB_GET_RESOLUTION, 0, 0, &xres, &yres);
386
    if (rc)
385
    if (rc)
387
        return;
386
        return;
388
   
387
   
389
    if (xres < 800 || yres < 600)
388
    if (xres < 800 || yres < 600)
390
        return;
389
        return;