diff options
author | Bert <ber.t@gmx.com> | 2011-01-21 12:57:35 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-21 12:57:35 +0100 |
commit | c7860b690b687492f90202e77d575f5855f04433 (patch) | |
tree | 9a80ff127810907c978fe06a283b7dd7495cb4ec /main.c | |
parent | 629d37376d1c9b175a525e8c30f8d468996a3bd6 (diff) | |
download | nsxiv-c7860b690b687492f90202e77d575f5855f04433.tar.zst |
Stricter object encapsulation
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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); } } |