summaryrefslogtreecommitdiffstats
path: root/src/render/Console.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-03-23 00:34:41 +0100
committerGitHub <noreply@github.com>2020-03-23 00:34:41 +0100
commit4070cad4a746728f0282862aa0a0063c15bbc86e (patch)
treefd780f1f980c6d2036f8b57c32f75e203c7b39a8 /src/render/Console.h
parentFix order of math operations on integers (fires) (diff)
parentmerge with upstream (diff)
downloadre3-4070cad4a746728f0282862aa0a0063c15bbc86e.tar
re3-4070cad4a746728f0282862aa0a0063c15bbc86e.tar.gz
re3-4070cad4a746728f0282862aa0a0063c15bbc86e.tar.bz2
re3-4070cad4a746728f0282862aa0a0063c15bbc86e.tar.lz
re3-4070cad4a746728f0282862aa0a0063c15bbc86e.tar.xz
re3-4070cad4a746728f0282862aa0a0063c15bbc86e.tar.zst
re3-4070cad4a746728f0282862aa0a0063c15bbc86e.zip
Diffstat (limited to '')
-rw-r--r--src/render/Console.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/src/render/Console.h b/src/render/Console.h
index eb84c1a5..c454d75e 100644
--- a/src/render/Console.h
+++ b/src/render/Console.h
@@ -1,24 +1,25 @@
-#pragma once
-
-class CConsole
-{
- enum
- {
- MAX_LINES = 8, // BUG? only shows 7
- MAX_STR_LEN = 40,
- };
-
- uint8 m_nLineCount;
- uint8 m_nCurrentLine;
- wchar Buffers[MAX_LINES][MAX_STR_LEN];
- uint32 m_aTimer[MAX_LINES];
- uint8 m_aRed[MAX_LINES];
- uint8 m_aGreen[MAX_LINES];
- uint8 m_aBlue[MAX_LINES];
-public:
- void AddLine(char *s, uint8 r, uint8 g, uint8 b);
- void AddOneLine(char *s, uint8 r, uint8 g, uint8 b);
- void Display();
-};
-
-extern CConsole &TheConsole; \ No newline at end of file
+#pragma once
+
+class CConsole
+{
+ enum
+ {
+ MAX_LINES = 8, // BUG? only shows 7
+ MAX_STR_LEN = 40,
+ };
+
+ uint8 m_nLineCount;
+ uint8 m_nCurrentLine;
+ wchar Buffers[MAX_LINES][MAX_STR_LEN];
+ uint32 m_aTimer[MAX_LINES];
+ uint8 m_aRed[MAX_LINES];
+ uint8 m_aGreen[MAX_LINES];
+ uint8 m_aBlue[MAX_LINES];
+public:
+ void AddLine(char *s, uint8 r, uint8 g, uint8 b);
+ void AddOneLine(char *s, uint8 r, uint8 g, uint8 b);
+ void Display();
+ void Init() { m_nCurrentLine = 0; m_nLineCount = 0; }
+};
+
+extern CConsole &TheConsole;