Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelfmz <fenix1905@tut.by>2022-11-06 01:55:06 +0300
committerelfmz <fenix1905@tut.by>2022-11-06 01:55:06 +0300
commit67c57c7e7c27f237f9d36609836ae0f2c6363543 (patch)
tree28dd7b1dee636323b5a11a3a0fabc1678ad4900b /far2l/src/console
parent66510d32bfb94bb26371b068643d8e3ecb320da2 (diff)
make truecolor work in VT history viewer (fix #1388)
Diffstat (limited to 'far2l/src/console')
-rw-r--r--far2l/src/console/AnsiEsc.hpp2
-rw-r--r--far2l/src/console/interf.cpp6
-rw-r--r--far2l/src/console/interf.hpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/far2l/src/console/AnsiEsc.hpp b/far2l/src/console/AnsiEsc.hpp
index 084a002d..f2278682 100644
--- a/far2l/src/console/AnsiEsc.hpp
+++ b/far2l/src/console/AnsiEsc.hpp
@@ -47,7 +47,7 @@ namespace AnsiEsc
private:
Parser _parser;
FontState _font_state;
- WORD _initial_attr;
+ DWORD64 _initial_attr;
wchar_t _last_char = L' ';
void EnforceStateColor();
diff --git a/far2l/src/console/interf.cpp b/far2l/src/console/interf.cpp
index 2cd2503c..695a4ded 100644
--- a/far2l/src/console/interf.cpp
+++ b/far2l/src/console/interf.cpp
@@ -54,7 +54,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
BOOL WINAPI CtrlHandler(DWORD CtrlType);
static int CurX,CurY;
-static int CurColor;
+static DWORD64 CurColor;
static volatile DWORD CtrlHandlerEvent = std::numeric_limits<uint32_t>::max();
static CONSOLE_CURSOR_INFO InitialCursorInfo;
@@ -778,7 +778,7 @@ void SetColor(int Color, bool ApplyToConsole)
}
}
-void SetRealColor(WORD wAttributes, bool ApplyToConsole)
+void SetRealColor(DWORD64 wAttributes, bool ApplyToConsole)
{
CurColor = wAttributes;
if (ApplyToConsole) {
@@ -786,7 +786,7 @@ void SetRealColor(WORD wAttributes, bool ApplyToConsole)
}
}
-WORD GetRealColor()
+DWORD64 GetRealColor()
{
return CurColor;
}
diff --git a/far2l/src/console/interf.hpp b/far2l/src/console/interf.hpp
index 35e05e64..f22d336e 100644
--- a/far2l/src/console/interf.hpp
+++ b/far2l/src/console/interf.hpp
@@ -101,8 +101,8 @@ void SetScreen(int X1,int Y1,int X2,int Y2,wchar_t Ch,int Color);
void MakeShadow(int X1,int Y1,int X2,int Y2);
void ChangeBlockColor(int X1,int Y1,int X2,int Y2,int Color);
void SetColor(int Color, bool ApplyToConsole = false);
-void SetRealColor(WORD wAttributes, bool ApplyToConsole = false);
-WORD GetRealColor();
+void SetRealColor(DWORD64 wAttributes, bool ApplyToConsole = false);
+DWORD64 GetRealColor();
void ClearScreen(int Color);
int GetColor();