mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 20:03:10 +00:00
fix stretched images
This commit is contained in:
parent
2d44394f2c
commit
2998cee43b
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ bool image_load(struct image* image, char* path, FILE* rsp) {
|
||||||
new_image_ref = CGImageCreateWithJPEGDataProvider(data_provider, NULL, false, kCGRenderingIntentDefault);
|
new_image_ref = CGImageCreateWithJPEGDataProvider(data_provider, NULL, false, kCGRenderingIntentDefault);
|
||||||
}
|
}
|
||||||
if (data_provider && new_image_ref)
|
if (data_provider && new_image_ref)
|
||||||
image_set_image(image, new_image_ref, (CGRect){{0,0},{CGImageGetHeight(new_image_ref),CGImageGetWidth(new_image_ref)}}, true);
|
image_set_image(image, new_image_ref, (CGRect){{0,0},{CGImageGetWidth(new_image_ref), CGImageGetHeight(new_image_ref)}}, true);
|
||||||
else printf("Could not open image file at: %s!\n", res_path), fprintf(rsp, "Could not open image file at: %s!\n", res_path);
|
else printf("Could not open image file at: %s!\n", res_path), fprintf(rsp, "Could not open image file at: %s!\n", res_path);
|
||||||
|
|
||||||
CGDataProviderRelease(data_provider);
|
CGDataProviderRelease(data_provider);
|
||||||
|
|
Loading…
Reference in a new issue