diff options
author | kraxel <kraxel> | 2006-08-13 18:28:49 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2006-08-13 18:28:49 +0000 |
commit | c183d2c562148a5418849d3222a2c940f3f1102a (patch) | |
tree | 0de2e66516d4f5b19b8c0eee17fdf9e6272c2c48 /fbi.c | |
parent | 3e07a22545ccf71b2bdd755b9f308ae52eac334c (diff) | |
download | fbida-c183d2c562148a5418849d3222a2c940f3f1102a.tar.gz |
blend cmd line option
Diffstat (limited to 'fbi.c')
-rw-r--r-- | fbi.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -142,8 +142,8 @@ int preserve; int read_ahead; int editable; int once; -int blending_msecs = 1000; -int perfmon = 1; +int blend_msecs; +int perfmon = 0; /* font handling */ static char *fontname = NULL; @@ -757,7 +757,7 @@ static void effect_blend(struct flist *f, struct flist *t) gettimeofday(&now, NULL); msecs = (now.tv_sec - start.tv_sec) * 1000; msecs += (now.tv_usec - start.tv_usec) / 1000; - weight = msecs * 100 / blending_msecs; + weight = msecs * 100 / blend_msecs; if (weight > 100) weight = 100; shadow_draw_image(flist_img_get(f), f->left, f->top, @@ -827,7 +827,7 @@ svga_show(struct flist *f, struct flist *prev, if (f->left + fb_var.xres > img->i.width) f->left = img->i.width - fb_var.xres; } - if (blending_msecs && prev && prev != f && + if (blend_msecs && prev && prev != f && flist_img_get(prev) && flist_img_get(f)) { effect_blend(prev, f); prev = NULL; @@ -1420,6 +1420,7 @@ main(int argc, char *argv[]) read_ahead = GET_READ_AHEAD(); max_mem_mb = GET_CACHE_MEM(); + blend_msecs = GET_BLEND_MSECS(); v_steps = GET_SCROLL(); h_steps = GET_SCROLL(); timeout = GET_TIMEOUT(); |