diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:21:27 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:21:27 +1000 |
commit | cb76e4e4448446bd69905de19683087d84ae39cb (patch) | |
tree | 0aa0548dae863c727cd32fc2b0d562783c7edb4e /source/frontend/StarMainInterface.cpp | |
parent | 179f220bb4f1cc3e9e53d760ece6497a6f2044a8 (diff) | |
parent | 008bd6d3df469f69eaf667bc3ae357a03894bddb (diff) |
Merge branch 'experiments/directives'
Diffstat (limited to 'source/frontend/StarMainInterface.cpp')
-rw-r--r-- | source/frontend/StarMainInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp index 6c5dc1d..1dcb6c4 100644 --- a/source/frontend/StarMainInterface.cpp +++ b/source/frontend/StarMainInterface.cpp @@ -965,8 +965,8 @@ void MainInterface::renderBreath() { size_t blocks = round((10 * breath) / breathMax); if (blocks < 10) { - m_guiContext->drawQuad("/interface/breath/breath.png", - RectF::withCenter(breathBackgroundCenterPos, Vec2F(imgMetadata->imageSize("/interface/breath/breath.png")) * interfaceScale())); + String breathPath = "/interface/breath/breath.png"; + m_guiContext->drawQuad(breathPath, RectF::withCenter(breathBackgroundCenterPos, Vec2F(imgMetadata->imageSize(breathPath)) * interfaceScale())); for (size_t i = 0; i < 10; i++) { if (i >= blocks) { if (blocks == 0 && Time::monotonicMilliseconds() % 500 > 250) |