[mythtv-commits] [MythTV/mythtv] b60551: MythUIImage: improve random image selection

Paul Harrison noreply at github.com
Sat Dec 4 15:09:49 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: b60551c817c85e40a683c261568de0a8e7f95580
      https://github.com/MythTV/mythtv/commit/b60551c817c85e40a683c261568de0a8e7f95580
  Author: Paul Harrison <paul at mythqml.net>
  Date:   2021-12-04 (Sat, 04 Dec 2021)

  Changed paths:
    M mythtv/libs/libmythui/mythuiimage.cpp
    M mythtv/libs/libmythui/mythuiimage.h

  Log Message:
  -----------
  MythUIImage: improve random image selection

We now cache the list of available images and randomise that list. We then
iterate over the random list which makes sure we don't re-show an image
until every image has been shown once. We then re-randomise the list and
start over again.




More information about the mythtv-commits mailing list