summaryrefslogtreecommitdiff
path: root/src/MessageBox.h
diff options
context:
space:
mode:
authorSteph Enders <smenders@gmail.com>2022-06-24 12:49:00 -0400
committerSteph Enders <smenders@gmail.com>2022-06-24 17:37:11 -0400
commit20076f7271e19ecc259014681ba733047bea4d9b (patch)
treee07dc114f224b0f689cdb618e7865420e9a03b2f /src/MessageBox.h
parent2f2ed4c294fbce00b959032f2dcd80dd7981dd9b (diff)
Remove unnecessary typedef
Idk why I thought that was necessary to avoid: "struct Name" in every place? maybe its a C thing? IDR
Diffstat (limited to 'src/MessageBox.h')
-rw-r--r--src/MessageBox.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/MessageBox.h b/src/MessageBox.h
index def138c..e1608a7 100644
--- a/src/MessageBox.h
+++ b/src/MessageBox.h
@@ -30,8 +30,8 @@
#include "SFML/Graphics/RectangleShape.hpp"
#include "SFML/Graphics/Text.hpp"
#include "SfmlUtils.h"
-#include <vector>
#include <limits>
+#include <vector>
const int LARGE_TEXT = 54;
const int MEDIUM_TEXT = 36;
@@ -42,13 +42,12 @@ struct MessageBox {
std::vector<sf::Text> msgs;
sf::RectangleShape box;
-
-} typedef MessageBox;
+};
struct DisplayText {
std::string msg;
int textSize;
-} typedef DisplayText;
+};
inline MessageBox initializeMessageBox(const std::vector<DisplayText> &strs,
const sf::Font &font,