summaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-18 20:11:28 +0100
committerBert <ber.t@gmx.com>2011-01-18 20:11:28 +0100
commit79c7e6178e9b577158408157ec23a477556ecf16 (patch)
treeabbefa4cd1b884ca19d396359b4e40dad0057589 /app.c
parentbb4edc756c7ceddb0f13194929cd1d363c85d653 (diff)
downloadnsxiv-79c7e6178e9b577158408157ec23a477556ecf16.tar.zst
Render image on window
Diffstat (limited to 'app.c')
-rw-r--r--app.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/app.c b/app.c
index 2a3e0c2..3c1f88a 100644
--- a/app.c
+++ b/app.c
@@ -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);
}