diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2011-09-25 10:01:46 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2011-09-25 10:01:46 +0200 | 
| commit | 1f43868e9c6d1257dda913bdc500514d301cf382 (patch) | |
| tree | e9918bc793e0c85d81594336b9f59af53d89f1da | |
| parent | aee2ce6e1ed7395160a72477309618a2271e14d1 (diff) | |
--title-font: Re-render image after drawing title
| -rw-r--r-- | ChangeLog | 1 | ||||
| -rw-r--r-- | src/index.c | 3 | ||||
| -rw-r--r-- | src/thumbnail.c | 3 | 
3 files changed, 7 insertions, 0 deletions
| @@ -5,6 +5,7 @@ git HEAD        <https://github.com/derf/feh/issues/62>      * "--image-bg default" was renamed to "--image-bg checks"      * Fix --title-font fallback behaviour +    * Fix delayed title display when using --title-font  Sun, 11 Sep 2011 12:46:50 +0200  Daniel Friesel <derf@finalrewind.org> diff --git a/src/index.c b/src/index.c index 4a1a0f0..897a47d 100644 --- a/src/index.c +++ b/src/index.c @@ -470,6 +470,9 @@ void init_index_mode(void)  		fx = (index_image_width - fw) >> 1;  		fy = index_image_height - fh - 2;  		gib_imlib_text_draw(im_main, title_fn, NULL, fx, fy, s, IMLIB_TEXT_TO_RIGHT, 255, 255, 255, 255); + +		if (opt.display) +			winwidget_render_image(winwid, 0, 0);  	}  	if (opt.output && opt.output_file) { diff --git a/src/thumbnail.c b/src/thumbnail.c index 6c61322..16dbcf3 100644 --- a/src/thumbnail.c +++ b/src/thumbnail.c @@ -392,6 +392,9 @@ void init_thumbnail_mode(void)  		fy = index_image_height - fh - 2;  		gib_imlib_text_draw(td.im_main, td.font_title, NULL, fx,  				fy, s, IMLIB_TEXT_TO_RIGHT, 255, 255, 255, 255); + +		if (opt.display) +			winwidget_render_image(winwid, 0, 1);  	}  	if (opt.output && opt.output_file) { | 
