diff options
| -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() { | |||
| 43 | CoreTiming::UnscheduleEvent(composition_event, 0); | 43 | CoreTiming::UnscheduleEvent(composition_event, 0); |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | u64 NVFlinger::OpenDisplay(const std::string& name) { | 46 | u64 NVFlinger::OpenDisplay(std::string_view name) { |
| 47 | LOG_WARNING(Service, "Opening display {}", name); | 47 | LOG_WARNING(Service, "Opening display {}", name); |
| 48 | 48 | ||
| 49 | // TODO(Subv): Currently we only support the Default display. | 49 | // 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 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <memory> | 7 | #include <memory> |
| 8 | #include <string_view> | ||
| 8 | #include <boost/optional.hpp> | 9 | #include <boost/optional.hpp> |
| 9 | #include "core/hle/kernel/event.h" | 10 | #include "core/hle/kernel/event.h" |
| 10 | 11 | ||
| @@ -41,7 +42,7 @@ public: | |||
| 41 | ~NVFlinger(); | 42 | ~NVFlinger(); |
| 42 | 43 | ||
| 43 | /// Opens the specified display and returns the id. | 44 | /// Opens the specified display and returns the id. |
| 44 | u64 OpenDisplay(const std::string& name); | 45 | u64 OpenDisplay(std::string_view name); |
| 45 | 46 | ||
| 46 | /// Creates a layer on the specified display and returns the layer id. | 47 | /// Creates a layer on the specified display and returns the layer id. |
| 47 | u64 CreateLayer(u64 display_id); | 48 | u64 CreateLayer(u64 display_id); |