Changeset e1f2079 in mainline for uspace/srv/hid/display/ddev.c
- Timestamp:
- 2020-02-14T19:54:40Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b0a94854
- Parents:
- b252e87
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/ddev.c
rb252e87 re1f2079 37 37 #include <ddev.h> 38 38 #include <errno.h> 39 #include <io/log.h> 39 40 #include <stdio.h> 40 41 #include <stdlib.h> … … 53 54 { 54 55 ds_ddev_t *ddev; 56 ddev_info_t info; 55 57 gfx_context_t *gc; 56 58 ddev_t *dd = NULL; … … 71 73 return rc; 72 74 } 75 76 rc = ddev_get_info(dd, &info); 77 if (rc != EOK) { 78 printf("Error getting information for display device '%s'.\n", 79 name); 80 free(name); 81 ddev_close(dd); 82 return rc; 83 } 84 85 log_msg(LOG_DEFAULT, LVL_NOTE, "Device rectangle for '%s': " 86 "%d,%d,%d,%d\n", name, info.rect.p0.x, info.rect.p0.y, 87 info.rect.p1.x, info.rect.p1.y); 73 88 74 89 rc = ddev_get_gc(dd, &gc); … … 91 106 ddev->dd = dd; 92 107 ddev->gc = gc; 108 ddev->info = info; 93 109 94 110 ds_display_add_ddev(display, ddev);
Note:
See TracChangeset
for help on using the changeset viewer.