aboutsummaryrefslogtreecommitdiff
path: root/include/Text.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-15 13:58:18 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-15 13:58:18 +0200
commit7068f9cf6298c46bd6d84b93173e44ca283492b8 (patch)
treec2746c5a127fa5ed20454d96e0009ca65226f91f /include/Text.hpp
parent81c2facbe1dc3212de95eafc62bfabdd24de696b (diff)
Use std::array to auto copy array in text
Diffstat (limited to 'include/Text.hpp')
-rw-r--r--include/Text.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Text.hpp b/include/Text.hpp
index cef6dd5..fbd850a 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -146,7 +146,7 @@ namespace QuickMedia
// 1: Normal text
// 2: CJK
// 3: Emoji
- sf::VertexArray vertices[3];
+ std::array<sf::VertexArray, 3> vertices;
//sf::VertexBuffer vertex_buffers[3];
float maxWidth;
sf::Vector2f position;