diff options
author | Marvin Borner | 2021-06-13 12:59:45 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-13 12:59:45 +0200 |
commit | 5053382808960f3209b3fd217fd6b20b240f0d38 (patch) | |
tree | f51dede9317c268ce3ce11b5ddaa8a1a9b7295cf /apps/wm | |
parent | d832f9ddc9187c83a52a724d4ea39aea08de485b (diff) |
Added image viewer and blerp scaling
Diffstat (limited to 'apps/wm')
-rw-r--r-- | apps/wm/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/wm/main.c b/apps/wm/main.c index 25478ff..771bd44 100644 --- a/apps/wm/main.c +++ b/apps/wm/main.c @@ -476,9 +476,10 @@ static void window_bar_draw(struct window *win, char name[64]) return; gfx_write(&win->ctx, vec2(BAR_MARGIN, BAR_MARGIN), FONT_24, COLOR_WHITE, name); - gfx_load_image_filter(&win->ctx, + gfx_draw_image_filter(&win->ctx, vec2(win->ctx.size.x - BAR_CLOSE_SIZE - BAR_MARGIN, BAR_MARGIN), - GFX_FILTER_INVERT, "/icons/close-" STRINGIFY(BAR_CLOSE_SIZE) ".png"); + vec2(BAR_CLOSE_SIZE, BAR_CLOSE_SIZE), GFX_FILTER_INVERT, + "/icons/close-" STRINGIFY(BAR_CLOSE_SIZE) ".png"); } /** @@ -751,7 +752,7 @@ int main(int argc, char **argv) assert(io_control(IO_BUS, IOCTL_BUS_REGISTER, "wm") == EOK); - assert(exec("paint", NULL) == EOK); + assert(exec("view", NULL) == EOK); u8 msg[1024] = { 0 }; struct event_keyboard event_keyboard = { 0 }; |