summaryrefslogtreecommitdiff
path: root/kms++/inc/kms++/extframebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'kms++/inc/kms++/extframebuffer.h')
-rw-r--r--kms++/inc/kms++/extframebuffer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/kms++/inc/kms++/extframebuffer.h b/kms++/inc/kms++/extframebuffer.h
index 0b9d08a..5239a3d 100644
--- a/kms++/inc/kms++/extframebuffer.h
+++ b/kms++/inc/kms++/extframebuffer.h
@@ -20,10 +20,10 @@ public:
PixelFormat format() const override { return m_format; }
unsigned num_planes() const override { return m_num_planes; }
- uint32_t handle(unsigned plane) const { return m_planes[plane].handle; }
- uint32_t stride(unsigned plane) const override { return m_planes[plane].stride; }
- uint32_t size(unsigned plane) const override { return m_planes[plane].size; }
- uint32_t offset(unsigned plane) const override { return m_planes[plane].offset; }
+ uint32_t handle(unsigned plane) const { return m_planes.at(plane).handle; }
+ uint32_t stride(unsigned plane) const override { return m_planes.at(plane).stride; }
+ uint32_t size(unsigned plane) const override { return m_planes.at(plane).size; }
+ uint32_t offset(unsigned plane) const override { return m_planes.at(plane).offset; }
private:
struct FramebufferPlane {
@@ -35,7 +35,7 @@ private:
};
unsigned m_num_planes;
- struct FramebufferPlane m_planes[4];
+ std::array<FramebufferPlane, 4> m_planes;
PixelFormat m_format;
};