Changeset 159776f in mainline for uspace/srv/hid/display/main.c


Ignore:
Timestamp:
2019-10-10T10:17:17Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
78a71936
Parents:
bef51cf
git-author:
Jiri Svoboda <jiri@…> (2019-10-09 17:07:14)
git-committer:
Jiri Svoboda <jiri@…> (2019-10-10 10:17:17)
Message:

Provisional display server output via canvas/guigfx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/main.c

    rbef51cf r159776f  
    77 * are met:
    88 *
    9  * - Redistributions of source code must retain the above copyright
     9 * - Redistribution1s of source code must retain the above copyright
    1010 *   notice, this list of conditions and the following disclaimer.
    1111 * - Redistributions in binary form must reproduce the above copyright
     
    4646#include <task.h>
    4747#include "display.h"
     48#include "output.h"
    4849#include "window.h"
    4950
     
    5657{
    5758        ds_display_t *disp = NULL;
     59        gfx_context_t *gc = NULL;
    5860        errno_t rc;
    5961
    60         rc = ds_display_create(&disp);
     62        rc = output_init(&gc);
     63        if (rc != EOK)
     64                goto error;
     65
     66        rc = ds_display_create(gc, &disp);
    6167        if (rc != EOK)
    6268                goto error;
     
    8288        return EOK;
    8389error:
     90        if (gc != NULL)
     91                gfx_context_delete(gc);
    8492        if (disp != NULL)
    8593                ds_display_destroy(disp);
Note: See TracChangeset for help on using the changeset viewer.