aboutsummaryrefslogtreecommitdiffstats
path: root/core/metrics.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-02-10 22:16:25 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-02-10 14:33:15 -0800
commitb3e4c9c8daee8df29c7d6fc943e37886217d3c98 (patch)
tree3deac4ca5344f82394bf96627dda737f87fa292c /core/metrics.h
parent41df39fdbe22fed32cee28a0035ee283dc49b79b (diff)
downloadsubsurface-b3e4c9c8daee8df29c7d6fc943e37886217d3c98.tar.gz
desktop: cache photo and geo icons
The icons shown in the dive list were rendered for every single access. Render them only once. This supposes that the defaultIconMetrics structure does not change once the icons are rendered! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/metrics.h')
-rw-r--r--core/metrics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/metrics.h b/core/metrics.h
index 4c636bcc4..e345213a7 100644
--- a/core/metrics.h
+++ b/core/metrics.h
@@ -31,7 +31,7 @@ struct IconMetrics {
IconMetrics();
};
-const IconMetrics & defaultIconMetrics();
+const IconMetrics &defaultIconMetrics();
void updateDevicePixelRatio(double dpr);
#endif // METRICS_H