aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/main.c b/main.c
index e9a2970..bba5fc6 100644
--- a/main.c
+++ b/main.c
@@ -83,14 +83,8 @@ int main(int argc, char **argv) {
exit(1);
}
- img.zoom = 1.0;
- img.scalemode = SCALE_MODE;
-
- win.w = WIN_WIDTH;
- win.h = WIN_HEIGHT;
-
win_open(&win);
- imlib_init(&win);
+ img_init(&img, &win);
img_load(&img, filenames[fileidx]);
img_render(&img, &win);
@@ -107,7 +101,7 @@ void cleanup() {
static int in = 0;
if (!in++) {
- imlib_destroy();
+ img_free(&img);
win_close(&win);
}
}