summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/display
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-02-21 16:56:20 +0100
committerLioncash <mathew1800@gmail.com>2019-02-21 18:13:09 +0100
commitfd15730767860659bdb58e8cd33074530a708295 (patch)
treeb5225c8d0e1f8e60e373b7affb01c3d2e8f35ccc /src/core/hle/service/vi/display
parentservice/nvflinger: Move display specifics over to vi_display (diff)
downloadyuzu-fd15730767860659bdb58e8cd33074530a708295.tar
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.gz
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.bz2
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.lz
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.xz
yuzu-fd15730767860659bdb58e8cd33074530a708295.tar.zst
yuzu-fd15730767860659bdb58e8cd33074530a708295.zip
Diffstat (limited to 'src/core/hle/service/vi/display')
-rw-r--r--src/core/hle/service/vi/display/vi_display.cpp4
-rw-r--r--src/core/hle/service/vi/display/vi_display.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/vi/display/vi_display.cpp b/src/core/hle/service/vi/display/vi_display.cpp
index 4d77c3353..9c0afd152 100644
--- a/src/core/hle/service/vi/display/vi_display.cpp
+++ b/src/core/hle/service/vi/display/vi_display.cpp
@@ -48,7 +48,7 @@ void Display::CreateLayer(u64 id, std::shared_ptr<NVFlinger::BufferQueue> buffer
Layer* Display::FindLayer(u64 id) {
const auto itr = std::find_if(layers.begin(), layers.end(),
- [id](const VI::Layer& layer) { return layer.id == id; });
+ [id](const VI::Layer& layer) { return layer.GetID() == id; });
if (itr == layers.end()) {
return nullptr;
@@ -59,7 +59,7 @@ Layer* Display::FindLayer(u64 id) {
const Layer* Display::FindLayer(u64 id) const {
const auto itr = std::find_if(layers.begin(), layers.end(),
- [id](const VI::Layer& layer) { return layer.id == id; });
+ [id](const VI::Layer& layer) { return layer.GetID() == id; });
if (itr == layers.end()) {
return nullptr;
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h
index 22b831592..8948102bc 100644
--- a/src/core/hle/service/vi/display/vi_display.h
+++ b/src/core/hle/service/vi/display/vi_display.h
@@ -16,7 +16,7 @@ class BufferQueue;
namespace Service::VI {
-struct Layer;
+class Layer;
/// Represents a single display type
class Display {