diff options
author | Bert <ber.t@gmx.com> | 2011-01-18 20:11:28 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-18 20:11:28 +0100 |
commit | 79c7e6178e9b577158408157ec23a477556ecf16 (patch) | |
tree | abbefa4cd1b884ca19d396359b4e40dad0057589 /app.c | |
parent | bb4edc756c7ceddb0f13194929cd1d363c85d653 (diff) | |
download | nsxiv-79c7e6178e9b577158408157ec23a477556ecf16.tar.zst |
Render image on window
Diffstat (limited to 'app.c')
-rw-r--r-- | app.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,7 +28,7 @@ void app_init(app_t *app) { app->fileidx = 0; - app->img.zoom = 100; + app->img.zoom = 1.0; app->img.scalemode = SCALE_MODE; app->win.w = WIN_WIDTH; @@ -52,4 +52,6 @@ void app_load_image(app_t *app) { return; img_load(&app->img, app->filenames[app->fileidx]); + + img_render(&app->img, &app->win); } |