Changeset 04c35fca in mainline
- Timestamp:
 - 2018-11-23T20:31:50Z (7 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - a01f732
 - Parents:
 - cf3a905c (diff), 103db908 (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. - git-author:
 - Jakub Jermář <jakub@…> (2018-11-23 20:31:50)
 - git-committer:
 - GitHub <noreply@…> (2018-11-23 20:31:50)
 - Location:
 - uspace
 - Files:
 - 
      
- 2 edited
 
- 
          
  app/fontviewer/fontviewer.c (modified) (3 diffs)
 - 
          
  lib/draw/font/bitmap_backend.c (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/app/fontviewer/fontviewer.c
rcf3a905c r04c35fca 170 170 source_t leading_bg = rgb(170, 238, 255); 171 171 source_t leading_fg = rgb(0, 170, 212); 172 173 font_t *font; 172 font_t *info_font = NULL; 173 font_t *font = NULL; 174 174 175 errno_t rc = create_font(&font, points); 175 176 if (rc != EOK) { 176 177 printf("Failed creating font\n"); 177 return rc; 178 } 179 180 font_t *info_font; 178 goto out_err; 179 } 180 181 181 rc = embedded_font_create(&info_font, 16); 182 182 if (rc != EOK) { 183 183 printf("Failed creating info font\n"); 184 return rc;184 goto out_err; 185 185 } 186 186 … … 188 188 rc = font_get_metrics(font, &font_metrics); 189 189 if (rc != EOK) 190 return rc;190 goto out_err; 191 191 192 192 surface_coord_t top = 50; … … 238 238 } 239 239 240 font_release(font); 241 return EOK; 240 out_err: 241 if (font) 242 font_release(font); 243 if (info_font) 244 font_release(info_font); 245 return rc; 242 246 } 243 247  - 
      
uspace/lib/draw/font/bitmap_backend.c
rcf3a905c r04c35fca 212 212 213 213 data->decoder->release(data->decoder_data); 214 free(data); 214 215 } 215 216  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  