Changes in uspace/app/fontviewer/fontviewer.c [b7fd2a0:1569a9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/fontviewer/fontviewer.c
rb7fd2a0 r1569a9b 63 63 char *font_path = NULL; 64 64 65 static errno_t draw(void);65 static int draw(void); 66 66 67 67 static void on_keyboard_event(widget_t *widget, void *data) … … 96 96 } 97 97 98 errno_t rc = draw();98 int rc = draw(); 99 99 if (rc != EOK) { 100 100 printf("Failed drawing: %s.\n", str_error(rc)); … … 104 104 } 105 105 106 static errno_t create_font(font_t **font, uint16_t points)106 static int create_font(font_t **font, uint16_t points) 107 107 { 108 108 if (font_path == NULL) { … … 161 161 162 162 163 static errno_t draw(void)163 static int draw(void) 164 164 { 165 165 source_t background = rgb(255, 255, 255); … … 174 174 175 175 font_t *font; 176 errno_t rc = create_font(&font, points);176 int rc = create_font(&font, points); 177 177 if (rc != EOK) { 178 178 printf("Failed creating font\n"); … … 274 274 height = WINDOW_HEIGHT; 275 275 276 errno_t rc = draw();276 int rc = draw(); 277 277 if (rc != EOK) { 278 278 printf("Failed drawing: %s.\n", str_error(rc));
Note:
See TracChangeset
for help on using the changeset viewer.