aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 5d9f7a1..e9a2970 100644
--- a/main.c
+++ b/main.c
@@ -93,7 +93,7 @@ int main(int argc, char **argv) {
imlib_init(&win);
img_load(&img, filenames[fileidx]);
- img_display(&img, &win);
+ img_render(&img, &win);
update_title();
run();
@@ -146,14 +146,14 @@ void on_keypress(XEvent *ev) {
case 'n':
if (fileidx + 1 < filecnt) {
img_load(&img, filenames[++fileidx]);
- img_display(&img, &win);
+ img_render(&img, &win);
update_title();
}
break;
case 'p':
if (fileidx > 0) {
img_load(&img, filenames[--fileidx]);
- img_display(&img, &win);
+ img_render(&img, &win);
update_title();
}
break;