From afac553ed6d93efc45e1587e2f0bad0acdbeb725 Mon Sep 17 00:00:00 2001
From: David Kuder <davidk@thewaffleiron.net>
Date: Sun, 16 Apr 2023 23:22:11 -0400
Subject: [PATCH] Fix tbcolor/border on IIgs

---
 vga/vgabuf.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vga/vgabuf.h b/vga/vgabuf.h
index 9f28f82..11a8678 100644
--- a/vga/vgabuf.h
+++ b/vga/vgabuf.h
@@ -16,9 +16,9 @@ extern volatile uint8_t terminal_col;
 #define apple_tbcolor  apple_memory[0xC022]
 #define apple_border   apple_memory[0xC034]
 
-#define APPLE_FORE       ((terminal_tbcolor>>4) & 0xf)
-#define APPLE_BACK       (terminal_tbcolor & 0xf)
-#define APPLE_BORDER     (terminal_border & 0xf)
+#define APPLE_FORE       ((apple_tbcolor>>4) & 0xf)
+#define APPLE_BACK       (apple_tbcolor & 0xf)
+#define APPLE_BORDER     (apple_border & 0xf)
 
 extern volatile uint32_t mono_palette;
 extern volatile uint8_t terminal_tbcolor;