summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/samcoupe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/samcoupe.cpp')
-rw-r--r--src/mame/video/samcoupe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/video/samcoupe.cpp b/src/mame/video/samcoupe.cpp
index 57e924ecde1..780f93ed1f1 100644
--- a/src/mame/video/samcoupe.cpp
+++ b/src/mame/video/samcoupe.cpp
@@ -18,7 +18,7 @@
#define BORDER_COLOR(x) ((x & 0x20) >> 2 | (x & 0x07))
/* foreground and background color from attribute byte in mode 1 and 2 */
-#define ATTR_BG(x) ((x >> 3) & 0x07)
+#define ATTR_BG(x) ((x >> 3) & 0x0f)
#define ATTR_FG(x) (((x >> 3) & 0x08) | (x & 0x07))