mirror of
https://github.com/specht/champ.git
synced 2025-02-21 04:29:12 +00:00
fixed a bug: 1D watches was upside down
This commit is contained in:
parent
66611615c3
commit
95cf3207d4
2
champ.rb
2
champ.rb
@ -372,7 +372,7 @@ class Champ
|
|||||||
|
|
||||||
histogram.each_pair do |key, value|
|
histogram.each_pair do |key, value|
|
||||||
x = key & 0xff;
|
x = key & 0xff;
|
||||||
y = (((key ^ 0xff) >> 8) & 0xff)
|
y = ((key >> 8) & 0xff) ^ 0xff
|
||||||
x = (x * canvas_width) / 255 + canvas_left
|
x = (x * canvas_width) / 255 + canvas_left
|
||||||
y = (y * canvas_height) / 255 + canvas_top
|
y = (y * canvas_height) / 255 + canvas_top
|
||||||
(0..6).each do |dy|
|
(0..6).each do |dy|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user