From 19b8c1fa5676f2ba8828246a07c5ab80ac505394 Mon Sep 17 00:00:00 2001 From: olikraus Date: Sat, 7 Jan 2017 15:10:43 +0100 Subject: [PATCH] issue #56 --- csrc/u8g2_ll_hvline.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/csrc/u8g2_ll_hvline.c b/csrc/u8g2_ll_hvline.c index 3e5c77ae..8df00175 100644 --- a/csrc/u8g2_ll_hvline.c +++ b/csrc/u8g2_ll_hvline.c @@ -33,6 +33,19 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + *ptr |= or_mask + *ptr ^= xor_mask + + color = 0: or_mask = 1, xor_mask = 1 + color = 1: or_mask = 1, xor_mask = 0 + color = 2: or_mask = 0, xor_mask = 1 + + if ( color <= 1 ) + or_mask = mask; + if ( color != 1 ) + xor_mask = mask; + */ #include "u8g2.h"