Changeset 132ab5d1 in mainline for uspace/app/fontviewer/fontviewer.c
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/app/fontviewer/fontviewer.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/fontviewer/fontviewer.c
r8bfb163 r132ab5d1 36 36 #include <stdlib.h> 37 37 #include <errno.h> 38 #include < malloc.h>38 #include <stdlib.h> 39 39 #include <stdbool.h> 40 #include <str_error.h> 40 41 #include <window.h> 41 42 #include <canvas.h> … … 97 98 int rc = draw(); 98 99 if (rc != EOK) { 99 printf("Failed drawing: % d.\n", rc);100 printf("Failed drawing: %s.\n", str_error(rc)); 100 101 exit(1); 101 102 } … … 148 149 va_end(args); 149 150 150 if (ret <= 0) 151 return ret; 152 153 drawctx_set_source(drawctx, source); 154 drawctx_set_font(drawctx, font); 155 drawctx_print(drawctx, str, x, y); 156 157 free(str); 151 if (ret >= 0) { 152 drawctx_set_source(drawctx, source); 153 drawctx_set_font(drawctx, font); 154 drawctx_print(drawctx, str, x, y); 155 156 free(str); 157 } 158 158 159 159 return ret; … … 276 276 int rc = draw(); 277 277 if (rc != EOK) { 278 printf("Failed drawing: % d.\n", rc);278 printf("Failed drawing: %s.\n", str_error(rc)); 279 279 return 2; 280 280 }
Note:
See TracChangeset
for help on using the changeset viewer.
