summaryrefslogtreecommitdiff
path: root/textscreen/txt_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen/txt_io.c')
-rw-r--r--textscreen/txt_io.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/textscreen/txt_io.c b/textscreen/txt_io.c
index 1ecc7bd6..08bb5ac9 100644
--- a/textscreen/txt_io.c
+++ b/textscreen/txt_io.c
@@ -238,6 +238,18 @@ void TXT_BGColor(int color, int blinking)
bgcolor |= TXT_COLOR_BLINKING;
}
+void TXT_SaveColors(txt_saved_colors_t *save)
+{
+ save->bgcolor = bgcolor;
+ save->fgcolor = fgcolor;
+}
+
+void TXT_RestoreColors(txt_saved_colors_t *save)
+{
+ bgcolor = save->bgcolor;
+ fgcolor = save->fgcolor;
+}
+
void TXT_ClearScreen(void)
{
unsigned char *screen;