Commit 287687d7 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

winwidget.c: Only draw text in normal mode.

This way, zooming, panning etc. gets sped up quite a bit.
parent beecfafb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ git HEAD
    * Add --info option to display custom image information
    * Do not change to the next slide when executing an action with ; as first
      character (this character is stripped when executing the action)
    * Speed up panning, zooming etc. by hiding image overlay text

Tue, 24 Aug 2010 19:23:36 +0200  Daniel Friesel <derf@chaosdorf.de>

+12 −10
Original line number Diff line number Diff line
@@ -531,6 +531,7 @@ void winwidget_render_image(winwidget winwid, int resize, int alias)
								sh, dx, dy,
								dw, dh, 1,
								gib_imlib_image_has_alpha(winwid->im), alias);
	if (opt.mode == MODE_NORMAL) {
		if (opt.caption_path)
			winwidget_update_caption(winwid);
		if (opt.draw_filename)
@@ -541,6 +542,7 @@ void winwidget_render_image(winwidget winwid, int resize, int alias)
			feh_draw_zoom(winwid);
		if (opt.info_cmd)
			feh_draw_info(winwid);
	}
	XSetWindowBackgroundPixmap(disp, winwid->win, winwid->bg_pmap);
	XClearWindow(disp, winwid->win);
	return;