Split img_fit into internal/external function

This commit is contained in:
Bert
2011-02-03 16:55:24 +01:00
parent c6556f8cc7
commit 414fa567ce
3 changed files with 25 additions and 19 deletions

2
main.c
View File

@ -288,7 +288,7 @@ void on_keypress(XKeyEvent *kev) {
changed = img_zoom(&img, 1.0);
break;
case XK_w:
if ((changed = img_fit(&img, &win, 1)))
if ((changed = img_fit_win(&img, &win)))
img_center(&img, &win);
break;