diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-07 14:19:24 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-07 14:32:06 +0200 |
commit | 7e49881b7f604d1ee267f70405b74ddd9f913791 (patch) | |
tree | d6eb446e073c099eda0dba61af4cca7cabeb123d | |
parent | Merge pull request #931 from DarkLordZach/nca-as-drd (diff) | |
download | yuzu-7e49881b7f604d1ee267f70405b74ddd9f913791.tar yuzu-7e49881b7f604d1ee267f70405b74ddd9f913791.tar.gz yuzu-7e49881b7f604d1ee267f70405b74ddd9f913791.tar.bz2 yuzu-7e49881b7f604d1ee267f70405b74ddd9f913791.tar.lz yuzu-7e49881b7f604d1ee267f70405b74ddd9f913791.tar.xz yuzu-7e49881b7f604d1ee267f70405b74ddd9f913791.tar.zst yuzu-7e49881b7f604d1ee267f70405b74ddd9f913791.zip |
-rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index 0bf51062c..e6848827e 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp @@ -43,7 +43,7 @@ NVFlinger::~NVFlinger() { CoreTiming::UnscheduleEvent(composition_event, 0); } -u64 NVFlinger::OpenDisplay(const std::string& name) { +u64 NVFlinger::OpenDisplay(std::string_view name) { LOG_WARNING(Service, "Opening display {}", name); // TODO(Subv): Currently we only support the Default display. diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h index 2c908297b..73ad994db 100644 --- a/src/core/hle/service/nvflinger/nvflinger.h +++ b/src/core/hle/service/nvflinger/nvflinger.h @@ -5,6 +5,7 @@ #pragma once #include <memory> +#include <string_view> #include <boost/optional.hpp> #include "core/hle/kernel/event.h" @@ -41,7 +42,7 @@ public: ~NVFlinger(); /// Opens the specified display and returns the id. - u64 OpenDisplay(const std::string& name); + u64 OpenDisplay(std::string_view name); /// Creates a layer on the specified display and returns the layer id. u64 CreateLayer(u64 display_id); |