Skip to content
Snippets Groups Projects
  1. Jun 17, 2020
    • Birte Kristina Friesel's avatar
      toggle_pause: Re-render the image instead of reloading · f0361c5e
      Birte Kristina Friesel authored
      When the slideshow state is toggled, the info line needs to be redrawn as it
      may use the %a format specifier (which shows whether the slideshow is running
      or paused). feh_reload_image does this, but also resets all pan and zoom
      options and reloads the image from disk. winwidget_render_image only redraws
      info, caption and similar lines in this case, which is more efficient and does
      not incur unwanted side-effects.
      f0361c5e
  2. Jun 16, 2020
  3. Apr 11, 2020
  4. Apr 08, 2020
  5. Nov 08, 2018
  6. Oct 17, 2018
    • Birte Kristina Friesel's avatar
      Use random() instead of rand() to increase portability · 9803fc41
      Birte Kristina Friesel authored
      Quoting glibc rand(3):
      
      The  versions  of rand() and srand() in the Linux C Library use the same random
      number generator as random(3) and srandom(3), so the lower-order bits should be
      as  random  as  the  higher-order bits.   However,  on  older  rand()
      implementations, and on current implementations on different systems, the
      lower-order bits are much less random than the higher-order bits.  Do not use
      this function in applications intended to be portable when good randomness is
      needed.  (Use random(3) instead.)
      9803fc41
  7. May 11, 2018
  8. Feb 28, 2018
  9. Dec 28, 2017
  10. Sep 24, 2017
  11. Sep 16, 2017
  12. Sep 13, 2017
  13. Sep 04, 2017
  14. Sep 02, 2017
  15. Aug 31, 2017
  16. Aug 29, 2017
  17. Aug 23, 2017
  18. Aug 22, 2017
  19. Aug 12, 2017
  20. Aug 10, 2017
  21. Jun 19, 2017
  22. Jan 12, 2017
  23. Oct 17, 2016
  24. Oct 15, 2016
  25. Aug 28, 2016
  26. Aug 27, 2016
  27. May 28, 2016
    • guns's avatar
      Add prev_dir and next_dir navigation actions · 36b09fa0
      guns authored
      Many image collections are organized by directory, so it is nice to have
      jump-to-adjacent-directory navigation.
      
      e.g. Given the following file hierarchy:
      
          .
          ├── A
          │   ├── 1.jpg
          │   ├── 2.jpg
          │   └── C
          │       ├── 1.jpg
          │       ├── 2.jpg
          │       └── 3.jpg
          └── B
              ├── 1.jpg
              ├── 2.jpg
              └── 3.jpg
      
      `feh --recursive` creates the following filelist:
      
          A/1.jpg <---- current_file
          A/2.jpg
          A/C/1.jpg
          A/C/2.jpg
          A/C/3.jpg
          B/1.jpg
          B/2.jpg
          B/3.jpg
      
      If we press [next_dir], we move the current_file pointer to:
      
          A/1.jpg
          A/2.jpg
          A/C/1.jpg <-- current_file
          A/C/2.jpg
          A/C/3.jpg
          B/1.jpg
          B/2.jpg
          B/3.jpg
      
      Pressing [next_dir] again moves the pointer to:
      
          A/1.jpg
          A/2.jpg
          A/C/1.jpg
          A/C/2.jpg
          A/C/3.jpg
          B/1.jpg <---- current_file
          B/2.jpg
          B/3.jpg
      
      [next_dir] now moves the pointer back to the top of the list:
      
          A/1.jpg <---- current_file
          A/2.jpg
          A/C/1.jpg
          A/C/2.jpg
          A/C/3.jpg
          B/1.jpg
          B/2.jpg
          B/3.jpg
      
      Pressing [prev_dir] from here moves backwards to the first image of the
      previous directory:
      
          A/1.jpg
          A/2.jpg
          A/C/1.jpg
          A/C/2.jpg
          A/C/3.jpg
          B/1.jpg <---- current_file
          B/2.jpg
          B/3.jpg
      
      When starting from an position that is not the first image of a
      directory, [prev_dir] moves the pointer to the first image of the
      current directory.
      
      These actions combine well with `--sort dirname` since all regular files
      in a directory will be sorted before any subdirectories, avoiding a
      filelist like the following:
      
          A/1.jpg
          A/SUBDIR/2.jpg
          A/SUBDIR/3.jpg
          A/4.jpg
      
      With `--sort dirname` that filelist becomes:
      
          A/1.jpg
          A/4.jpg
          A/SUBDIR/2.jpg
          A/SUBDIR/3.jpg
      36b09fa0
  28. May 27, 2016
  29. Nov 14, 2015
    • Richard Molitor's avatar
      zoom: implement scale-down without flicker · dfe3c40f
      Richard Molitor authored
      this actually uses the old "force geometry" workaround to get the
      scale down behaviour (which makes the code a lot cleaner) by
      first setting the geometry after the window is created (to avoid
      creating a 0x0 sized window, which X does not like).
      dfe3c40f
  30. Jul 23, 2015
  31. May 22, 2014
  32. Apr 14, 2014
  33. Jan 30, 2013
  34. Dec 24, 2012
  35. Aug 21, 2012
  36. Mar 15, 2012
  37. Mar 12, 2012
  38. Mar 06, 2012
Loading