Fix sensors

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

View file

@ -26,10 +26,11 @@ class TheCatTools.GUI.Bubble : DrawingAreaOrientable {
var range = adjustment.upper - adjustment.lower; var range = adjustment.upper - adjustment.lower;
var position_y = radius + (height - 2 * radius) * (val_y - adjustment.lower) / range; var position_y = radius + (height - 2 * radius) * (val_y - adjustment.lower) / range;
var position_x = radius + (width - 2 * radius) * (val_x - adjustment.lower) / range; var position_x = radius + (width - 2 * radius) * (val_x - adjustment.lower) / range;
message ("%f %f -> %f %f -> %f %f", message ("%f %f -> %f %f -> %f %f\t%f",
value_x, value_y, value_x, value_y,
val_x, val_y, val_x, val_y,
position_x, position_y position_x, position_y,
range
); );
Utils.set_color_rgba (cr, get_color ()); Utils.set_color_rgba (cr, get_color ());
cr.arc (position_x, position_y, radius, 0, Math.PI * 2); cr.arc (position_x, position_y, radius, 0, Math.PI * 2);