Changeset 9be2358 in mainline for uspace/app/gfxdemo/gfxdemo.c
- Timestamp:
- 2019-09-23T13:05:52Z (5 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/gfxdemo/gfxdemo.c
r3e828ea r9be2358 44 44 console_ctrl_t *con = NULL; 45 45 gfx_color_t *color = NULL; 46 gfx_context_t *gc = NULL; 46 console_gc_t *cgc = NULL; 47 gfx_context_t *gc; 47 48 gfx_rect_t rect; 48 49 int i; … … 55 56 56 57 printf("Create console GC\n"); 57 rc = console_gc_create(con, stdout, & gc);58 rc = console_gc_create(con, stdout, &cgc); 58 59 if (rc != EOK) 59 60 return 1; 61 62 gc = console_gc_get_ctx(cgc); 60 63 61 64 while (true) { … … 85 88 } 86 89 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; 92 93 93 94 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.