diff options
author | Liam <byteslice@airmail.cc> | 2024-01-18 04:03:40 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-18 04:03:40 +0100 |
commit | e4bbb24dcf9048ac23e6c12f2ab5af1e988af764 (patch) | |
tree | ef5c985bcc765c02da9e443140de55228ed4134d /src/core/hle/service/vi/layer | |
parent | nvnflinger: ensure display abandonment considers all layers and future layers (diff) | |
download | yuzu-e4bbb24dcf9048ac23e6c12f2ab5af1e988af764.tar yuzu-e4bbb24dcf9048ac23e6c12f2ab5af1e988af764.tar.gz yuzu-e4bbb24dcf9048ac23e6c12f2ab5af1e988af764.tar.bz2 yuzu-e4bbb24dcf9048ac23e6c12f2ab5af1e988af764.tar.lz yuzu-e4bbb24dcf9048ac23e6c12f2ab5af1e988af764.tar.xz yuzu-e4bbb24dcf9048ac23e6c12f2ab5af1e988af764.tar.zst yuzu-e4bbb24dcf9048ac23e6c12f2ab5af1e988af764.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/vi/layer/vi_layer.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/vi/layer/vi_layer.h b/src/core/hle/service/vi/layer/vi_layer.h index 295005e23..f95e2dc71 100644 --- a/src/core/hle/service/vi/layer/vi_layer.h +++ b/src/core/hle/service/vi/layer/vi_layer.h @@ -4,6 +4,7 @@ #pragma once #include <memory> +#include <utility> #include "common/common_types.h" @@ -75,12 +76,12 @@ public: return open; } - void Close() { - open = false; + bool Close() { + return std::exchange(open, false); } - void Open() { - open = true; + bool Open() { + return !std::exchange(open, true); } private: |