summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-21 12:57:35 +0100
committerBert <ber.t@gmx.com>2011-01-21 12:57:35 +0100
commitc7860b690b687492f90202e77d575f5855f04433 (patch)
tree9a80ff127810907c978fe06a283b7dd7495cb4ec /main.c
parent629d37376d1c9b175a525e8c30f8d468996a3bd6 (diff)
downloadnsxiv-c7860b690b687492f90202e77d575f5855f04433.tar.zst
Stricter object encapsulation
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);
}
}