aboutsummaryrefslogtreecommitdiff
path: root/libgui/png.c
diff options
context:
space:
mode:
authorMarvin Borner2021-02-17 22:13:59 +0100
committerMarvin Borner2021-02-18 18:03:43 +0100
commite28ea65105c4afd3a3dea7d050b392565d15120d (patch)
treef3c1eaf8c4da5d71893355db1779d73d98f68d2f /libgui/png.c
parentb32cb0a22db893c106cb86ca0f1178d5da05b551 (diff)
Started GUI rewrite
It's a mess right now..
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);