Fix sensors
Signed-off-by: Vasiliy Doylov <nekodevelopper@gmail.com>
This commit is contained in:
parent
4097133840
commit
5d926690dd
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ class TheCatTools.GUI.BoubleBar : Gtk.DrawingArea, Gtk.Orientable {
|
|||
var radius = width / 2 - gap;
|
||||
var value = (value + 180);
|
||||
value = value % 90;
|
||||
value += 90;
|
||||
var position = radius + (height - radius * 2) * value / 180;
|
||||
message ("%f = %f", value, position);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue