aboutsummaryrefslogtreecommitdiff
path: root/libgui/png.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgui/png.c')
-rw-r--r--libgui/png.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgui/png.c b/libgui/png.c
index ad65eba..48089e3 100644
--- a/libgui/png.c
+++ b/libgui/png.c
@@ -1182,8 +1182,8 @@ struct bmp *png_load(const char *path)
assert(png->error == PNG_EOK);
struct bmp *bmp = malloc(sizeof(*bmp));
- bmp->width = png->width;
- bmp->height = png->height;
+ bmp->size.x = png->width;
+ bmp->size.y = png->height;
bmp->data = png->buffer;
bmp->bpp = png_get_bpp(png);
bmp->pitch = png->width * (bmp->bpp >> 3);