summaryrefslogtreecommitdiff
path: root/plugingui/image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/image.cc')
-rw-r--r--plugingui/image.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/image.cc b/plugingui/image.cc
index 4986027..65b8242 100644
--- a/plugingui/image.cc
+++ b/plugingui/image.cc
@@ -81,8 +81,8 @@ void GUI::Image::load(const char* data, size_t size)
//unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h,
// const unsigned char* in, size_t insize);
unsigned iw, ih;
- unsigned res = lodepng_decode32((unsigned char**)&image_data, &w, &h,
- (const unsigned char*)data, (size_t)size);
+ unsigned res = lodepng_decode32((unsigned char**)&image_data, &iw, &ih,
+ (const unsigned char*)data, size);
w = iw;
h = ih;