From dadc302945b71bc33e0436079708a7bbe9fcee48 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 18 Oct 2018 22:52:54 +0200 Subject: [PATCH] test inverse color matching once more --- src/drawing.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/drawing.rs b/src/drawing.rs index 08b195c..98b7236 100644 --- a/src/drawing.rs +++ b/src/drawing.rs @@ -98,10 +98,12 @@ impl Drawing for DisplayEink42BlackWhite { match color { Color::Black => { - self.buffer[idx] &= !bit; + //self.buffer[idx] &= !bit; + self.buffer[idx] |= bit; } Color::White => { - self.buffer[idx] |= bit; + //self.buffer[idx] |= bit; + self.buffer[idx] &= !bit; } } }