diff options
author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-01 20:03:23 +0200 |
---|---|---|
committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-01 20:03:23 +0200 |
commit | 1af2db7928029eb1ec7db3ee5b865815b22057de (patch) | |
tree | e0c3200114daa733eca16901a12a305d633d7250 /png-wbg.h | |
parent | d8f96450bc8bb70012b1db9f8bd44690e36ef048 (diff) | |
download | wbg-1af2db7928029eb1ec7db3ee5b865815b22057de.tar.gz |
main: open file once, in main, and log an error when we fail
Diffstat (limited to 'png-wbg.h')
-rw-r--r-- | png-wbg.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ #pragma once +#include <stdio.h> #include <pixman.h> -pixman_image_t *png_load(const char *path); +pixman_image_t *png_load(FILE *fp, const char *path); |