aboutsummaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
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);
}