Commit cd5d2af0 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

--draw-filename: Always show filelist position

parent b12763e7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ git HEAD
      character (this character is stripped when executing the action)
    * Speed up panning, zooming etc. by hiding image overlay text
    * Zoom button: Zoom to 100% on button release, not button click
    * --draw-filename: Always show position in filelist

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

+2 −3
Original line number Diff line number Diff line
@@ -603,9 +603,8 @@ void feh_draw_filename(winwidget w)
			IMLIB_TEXT_TO_RIGHT, 0, 0, 0, 255);
	gib_imlib_text_draw(im, fn, NULL, 1, 1, FEH_FILE(w->file->data)->filename,
			IMLIB_TEXT_TO_RIGHT, 255, 255, 255, 255);
	/* Print the position in the filelist, if we are in fullscreen and the
	 * list has more than one element */
	if (w->full_screen && (gib_list_length(filelist) - 1)) {
	/* Print the position in the filelist, if we have >=2 files */
	if (gib_list_length(filelist) > 1) {
		/* sic! */
		len = snprintf(NULL, 0, "%d of %d", gib_list_length(filelist), gib_list_length(filelist)) + 1;
		s = emalloc(len);