summaryrefslogtreecommitdiffstats
path: root/minuitwrp
diff options
context:
space:
mode:
Diffstat (limited to 'minuitwrp')
-rw-r--r--minuitwrp/resources.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minuitwrp/resources.c b/minuitwrp/resources.c
index 3b833cc70..4dd10a9de 100644
--- a/minuitwrp/resources.c
+++ b/minuitwrp/resources.c
@@ -100,10 +100,10 @@ int res_create_surface_png(const char* name, gr_surface* pSurface) {
int color_type, bit_depth;
size_t width, height;
- png_get_IHDR(png_ptr, info_ptr, width, height, &bit_depth,
+ png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth,
&color_type, NULL, NULL, NULL);
- png_byte* channels = png_get_channels(png_ptr, info_ptr);
+ png_byte channels = png_get_channels(png_ptr, info_ptr);
size_t stride = 4 * width;
size_t pixelSize = stride * height;