From 99107be8a997eb453b989e1b31123708685696dc Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 6 May 2019 18:18:32 +0200 Subject: 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...) --- src/cObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cObject.cpp') 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++) { -- cgit v1.2.3