Subversion Repositories HelenOS

Rev

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

Rev 2677 Rev 2678
Line 323... Line 323...
323
    memcpy(shm, logo, size);
323
    memcpy(shm, logo, size);
324
    /* Send area */
324
    /* Send area */
325
    rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (ipcarg_t) shm);
325
    rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (ipcarg_t) shm);
326
    if (rc)
326
    if (rc)
327
        goto exit;
327
        goto exit;
328
    rc = ipc_share_out_send(fbphone, shm, PROTO_READ);
328
    rc = ipc_share_out_start(fbphone, shm, PROTO_READ);
329
    if (rc)
329
    if (rc)
330
        goto drop;
330
        goto drop;
331
    /* Draw logo */
331
    /* Draw logo */
332
    async_msg_2(fbphone, FB_DRAW_PPM, x, y);
332
    async_msg_2(fbphone, FB_DRAW_PPM, x, y);
333
drop:
333
drop:
Line 384... Line 384...
384
    memcpy(shm, data, size);
384
    memcpy(shm, data, size);
385
    /* Send area */
385
    /* Send area */
386
    rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (ipcarg_t) shm);
386
    rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (ipcarg_t) shm);
387
    if (rc)
387
    if (rc)
388
        goto exit;
388
        goto exit;
389
    rc = ipc_share_out_send(fbphone, shm, PROTO_READ);
389
    rc = ipc_share_out_start(fbphone, shm, PROTO_READ);
390
    if (rc)
390
    if (rc)
391
        goto drop;
391
        goto drop;
392
 
392
 
393
    /* Obtain pixmap */
393
    /* Obtain pixmap */
394
    rc = async_req_0_0(fbphone, FB_SHM2PIXMAP);
394
    rc = async_req_0_0(fbphone, FB_SHM2PIXMAP);