From 95cf3207d4ce1ff26edac3fbe7002ad5eeb80c77 Mon Sep 17 00:00:00 2001 From: Michael Specht Date: Thu, 15 Feb 2018 21:48:07 +0100 Subject: [PATCH] fixed a bug: 1D watches was upside down --- champ.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/champ.rb b/champ.rb index de98385..79448c9 100755 --- a/champ.rb +++ b/champ.rb @@ -372,7 +372,7 @@ class Champ histogram.each_pair do |key, value| x = key & 0xff; - y = (((key ^ 0xff) >> 8) & 0xff) + y = ((key >> 8) & 0xff) ^ 0xff x = (x * canvas_width) / 255 + canvas_left y = (y * canvas_height) / 255 + canvas_top (0..6).each do |dy|