Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing/StarGuiContext.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-02-20 09:49:42 +1100
committerGitHub <noreply@github.com>2024-02-20 09:49:42 +1100
commitaa987a217779e71f97ee4c9cce531aec1c861bf8 (patch)
treee51fcce110306d93bf93870f13a5ff7d6b575427 /source/windowing/StarGuiContext.cpp
parentd0099a6d790b66f21e4e266e569d64fb82fb0a81 (diff)
parent1c89042016c739815b2d70bcbef4673eef6b63e0 (diff)
Merge branch 'main' into small-fixes
Diffstat (limited to 'source/windowing/StarGuiContext.cpp')
-rw-r--r--source/windowing/StarGuiContext.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/windowing/StarGuiContext.cpp b/source/windowing/StarGuiContext.cpp
index 028614a..d1be94a 100644
--- a/source/windowing/StarGuiContext.cpp
+++ b/source/windowing/StarGuiContext.cpp
@@ -26,8 +26,8 @@ GuiContext::GuiContext(MixerPtr mixer, ApplicationControllerPtr appController) {
s_singleton = this;
- m_mixer = move(mixer);
- m_applicationController = move(appController);
+ m_mixer = std::move(mixer);
+ m_applicationController = std::move(appController);
m_interfaceScale = 1;
@@ -41,7 +41,7 @@ GuiContext::~GuiContext() {
}
void GuiContext::renderInit(RendererPtr renderer) {
- m_renderer = move(renderer);
+ m_renderer = std::move(renderer);
auto textureGroup = m_renderer->createTextureGroup();
m_textureCollection = make_shared<AssetTextureGroup>(textureGroup);
m_drawablePainter = make_shared<DrawablePainter>(m_renderer, m_textureCollection);
@@ -197,7 +197,7 @@ void GuiContext::drawTriangles(List<tuple<Vec2F, Vec2F, Vec2F>> const& triangles
}
void GuiContext::drawInterfaceDrawable(Drawable drawable, Vec2F const& screenPos, Vec4B const& color) {
- drawDrawable(move(drawable), screenPos * interfaceScale(), (float)interfaceScale(), color);
+ drawDrawable(std::move(drawable), screenPos * interfaceScale(), (float)interfaceScale(), color);
}
void GuiContext::drawInterfaceLine(Vec2F const& begin, Vec2F const end, Vec4B const& color, float lineWidth) {
@@ -428,7 +428,7 @@ void GuiContext::playAudio(String const& audioAsset, int loops, float volume, fl
audioInstance->setVolume(volume);
audioInstance->setPitchMultiplier(pitch);
audioInstance->setLoops(loops);
- m_mixer->play(move(audioInstance));
+ m_mixer->play(std::move(audioInstance));
}
String GuiContext::getClipboard() const {
@@ -436,7 +436,7 @@ String GuiContext::getClipboard() const {
}
void GuiContext::setClipboard(String text) {
- m_applicationController->setClipboard(move(text));
+ m_applicationController->setClipboard(std::move(text));
}
void GuiContext::cleanup() {