From f45c25aabacc70861723a7ca1096a677bd987487 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 29 Jan 2019 14:48:31 -0500 Subject: nvflinger: Use a std::array for the available displays instead of std::vector The built-in set of displays is fixed, so we can utilize an array instead of a vector here. --- src/core/hle/service/nvflinger/nvflinger.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/core/hle/service/nvflinger/nvflinger.h') diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h index 9abba555b..5ba64a4ce 100644 --- a/src/core/hle/service/nvflinger/nvflinger.h +++ b/src/core/hle/service/nvflinger/nvflinger.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include @@ -84,7 +85,12 @@ private: std::shared_ptr nvdrv; - std::vector displays; + std::array displays{{ + {0, "Default"}, + {1, "External"}, + {2, "Edid"}, + {3, "Internal"}, + }}; std::vector> buffer_queues; /// Id to use for the next layer that is created, this counter is shared among all displays. -- cgit v1.2.3