URI: 
       Fixed pcboard color creation. - icy_draw - icy_draw is the successor to mystic draw. fork / mirror
  HTML git clone https://git.drkhsh.at/icy_draw.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit c17e0decb28b357fef3095afa83525984b57083e
   DIR parent 469c702b5303795789d4f5e7f7405ecc9d647ffb
  HTML Author: Mike Krüger <mkrueger@posteo.de>
       Date:   Sun,  5 May 2024 07:37:15 +0200
       
       Fixed pcboard color creation.
       
       Diffstat:
         M crates/icy_engine/src/formats/pcbo… |       4 +---
       
       1 file changed, 1 insertion(+), 3 deletions(-)
       ---
   DIR diff --git a/crates/icy_engine/src/formats/pcboard.rs b/crates/icy_engine/src/formats/pcboard.rs
       @@ -59,9 +59,7 @@ impl OutputFormat for PCBoard {
                        let ch = buf.get_char(pos);
        
                        if first_char || ch.attribute != last_attr {
       -                    result.extend_from_slice(b"@X");
       -                    result.push(HEX_TABLE[ch.attribute.get_background() as usize]);
       -                    result.push(HEX_TABLE[ch.attribute.get_foreground() as usize]);
       +                    result.extend_from_slice(format!("@X{:02X}", ch.attribute.as_u8(crate::IceMode::Blink)).as_bytes());
                            last_attr = ch.attribute;
                        }