diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-11 10:19:08 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-13 13:52:35 -0700 |
commit | b450c155fd78e304f07549c35667dc4e6349ec32 (patch) | |
tree | 6de785a326156429455cf3c2119a3bed822f6d2a /.clang-format | |
parent | afe20ce029a0194e1a8e9e8fbc6f32da1cfdec75 (diff) | |
download | subsurface-b450c155fd78e304f07549c35667dc4e6349ec32.tar.gz |
Dive pictures: Move thumbnail-size to Thumbnailer class
The size of the to-be-created thumbnails was passed from DivePictureModel
to Thumbnailer. This became more and more bothersome, because the size
had to be stored with the request. Calling from Thumbnailer into
DivePictureModel was not an option, since this is not linked to all tests.
Therefore, move these functions to the Thumbnailer class.
Since the maximum thumbnail size is now known to the thumbnailer, the
dummy and failure images can be precalculated, which makes switching
between dives faster.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions