aboutsummaryrefslogtreecommitdiff
path: root/src/cObject.cpp
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-06 18:18:32 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-06 18:18:32 +0200
commit99107be8a997eb453b989e1b31123708685696dc (patch)
tree3e822201c2662097ac7c294596e15395de5ab96c /src/cObject.cpp
parent3fec03eeaa7dbe5152255ebdc0aae9841c241565 (diff)
downloadtermgl-99107be8a997eb453b989e1b31123708685696dc.tar.gz
Changed color handling to take ANSI 8bit colors
added ansi_color_fg(R,G,B) and ..._bg(...) to generate ANSI-colors from RGB values replaced two spaces with tabs in every file to fix terrible tabbing (thanks atom...)
Diffstat (limited to 'src/cObject.cpp')
-rw-r--r--src/cObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cObject.cpp b/src/cObject.cpp
index a54d4e1..5440c28 100644
--- a/src/cObject.cpp
+++ b/src/cObject.cpp
@@ -61,9 +61,9 @@ void cObject::setSize(unsigned int _sx, unsigned int _sy)
for (unsigned int i = 0; i < _sx; i++)
cScreen[i] = (char*)malloc(sizeof *cScreen[i] * _sy);
- wColor = (WORD**)malloc(sizeof *wColor * _sx);
+ wColor = (uint16_t**)malloc(sizeof *wColor * _sx);
for (unsigned int i = 0; i < _sx; i++)
- wColor[i] = (WORD*)malloc(sizeof *wColor[i] * _sy);
+ wColor[i] = (uint16_t*)malloc(sizeof *wColor[i] * _sy);
for (unsigned int i = 0; i < sizeY; i++) {
for (unsigned int o = 0; o < sizeX; o++) {