Fix sensors
Signed-off-by: Vasiliy Doylov <nekodevelopper@gmail.com>
This commit is contained in:
parent
c91388f6de
commit
f478864b2c
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
class TheCatTools.GUI.Bubble : DrawingAreaOrientable {
|
||||
public double value_x { get; set; default = 0; }
|
||||
public double value_y { get; set; default = 0; }
|
||||
public double radius { get; set; default = 20; }
|
||||
public Gtk.Adjustment adjustment { get; set; default = new Gtk.Adjustment (0, -90, 90, 0, 0, 0); }
|
||||
|
||||
construct {
|
||||
|
@ -19,7 +20,6 @@ class TheCatTools.GUI.Bubble : DrawingAreaOrientable {
|
|||
}
|
||||
|
||||
public override void draw_func (Gtk.DrawingArea self, Cairo.Context cr, int width, int height) {
|
||||
var radius = int.min (width, height) / 2;
|
||||
var val_x = clamped (value_x);
|
||||
var val_y = clamped (value_y);
|
||||
var range = adjustment.upper - adjustment.lower;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue