diff options
author | Marvin Borner | 2020-09-13 12:10:45 +0200 |
---|---|---|
committer | Marvin Borner | 2020-09-13 12:10:45 +0200 |
commit | 0ff95a565280241a4b9cc03840d8756180860b25 (patch) | |
tree | 89280d9ed98b549e54c69a3ac74d03eca5aebc11 /libgui/gui.c | |
parent | e55f8e9039b5be5f3750639dad0ae5058adc8449 (diff) |
Maaany wm features
Diffstat (limited to 'libgui/gui.c')
-rw-r--r-- | libgui/gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgui/gui.c b/libgui/gui.c index d973835..486fe8e 100644 --- a/libgui/gui.c +++ b/libgui/gui.c @@ -74,7 +74,7 @@ void gui_load_image(struct window *win, char *path, int x, int y) // TODO: Support padding with odd widths int bypp = bmp->bpp >> 3; - u8 *srcfb = &bmp->data[bypp + bmp->height * bmp->pitch]; + u8 *srcfb = &bmp->data[bypp + (bmp->height - 1) * bmp->pitch]; u8 *destfb = &win->fb[bypp]; for (u32 cy = 0; cy < bmp->height; cy++) { memcpy(destfb, srcfb, bmp->pitch); |