fixed a bug: 1D watches was upside down

This commit is contained in:
Michael Specht 2018-02-15 21:48:07 +01:00
parent 66611615c3
commit 95cf3207d4
1 changed files with 1 additions and 1 deletions

View File

@ -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|