diff --git a/Machines/PCCompatible/CGA.hpp b/Machines/PCCompatible/CGA.hpp index 56a356615..85a061159 100644 --- a/Machines/PCCompatible/CGA.hpp +++ b/Machines/PCCompatible/CGA.hpp @@ -306,6 +306,9 @@ class CGA { // Apply blink or background intensity. if(control_ & 0x20) { + // Potentially remap dark yellow to brown. + colours[0] = yellow_to_brown(colours[0]); + if((attributes & 0x80) && (state.field_count & 16)) { std::swap(colours[0], colours[1]); } @@ -315,9 +318,6 @@ class CGA { } } - // Potentially remap dark yellow to brown. - colours[0] = yellow_to_brown(colours[0]); - // Draw according to ROM contents. pixel_pointer[0] = (row & 0x80) ? colours[1] : colours[0]; pixel_pointer[1] = (row & 0x40) ? colours[1] : colours[0];