Changeset 9be2358 in mainline for uspace/app/gfxdemo/gfxdemo.c


Ignore:
Timestamp:
2019-09-23T13:05:52Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
00e8290
Parents:
3e828ea
git-author:
Jiri Svoboda <jiri@…> (2019-09-22 13:04:48)
git-committer:
Jiri Svoboda <jiri@…> (2019-09-23 13:05:52)
Message:

Caller needs entire console GC to be able to destroy it properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/gfxdemo/gfxdemo.c

    r3e828ea r9be2358  
    4444        console_ctrl_t *con = NULL;
    4545        gfx_color_t *color = NULL;
    46         gfx_context_t *gc = NULL;
     46        console_gc_t *cgc = NULL;
     47        gfx_context_t *gc;
    4748        gfx_rect_t rect;
    4849        int i;
     
    5556
    5657        printf("Create console GC\n");
    57         rc = console_gc_create(con, stdout, &gc);
     58        rc = console_gc_create(con, stdout, &cgc);
    5859        if (rc != EOK)
    5960                return 1;
     61
     62        gc = console_gc_get_ctx(cgc);
    6063
    6164        while (true) {
     
    8588        }
    8689
    87         // TODO How will we free GC subclass?
    88 
    89         // rc = gfx_context_delete(gc);
    90         // if (rc != EOK)
    91         //      return 1;
     90        rc = console_gc_delete(cgc);
     91        if (rc != EOK)
     92                return 1;
    9293
    9394        return 0;
Note: See TracChangeset for help on using the changeset viewer.