Fix sensors

Signed-off-by: Vasiliy Doylov <nekodevelopper@gmail.com>
This commit is contained in:
Vasiliy Doylov 2025-03-02 15:05:15 +03:00
parent c91388f6de
commit f478864b2c
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582

View file

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