From cb6fb4de1ed318b5f5049b720200954e47dd9a43 Mon Sep 17 00:00:00 2001 From: Vasiliy Doylov Date: Sun, 2 Mar 2025 14:59:25 +0300 Subject: [PATCH] Fix sensors Signed-off-by: Vasiliy Doylov --- src/gui/bubble.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/bubble.vala b/src/gui/bubble.vala index 5240621..d3dfb74 100644 --- a/src/gui/bubble.vala +++ b/src/gui/bubble.vala @@ -26,6 +26,11 @@ class TheCatTools.GUI.Bubble : DrawingAreaOrientable { var range = adjustment.upper - adjustment.lower; var position_y = radius + (height - 2 * radius) * (val_y - adjustment.lower) / range; var position_x = radius + (width - 2 * radius) * (val_x - adjustment.lower) / range; + message ("%f %f -> %f %f -> %f %f", + value_x, value_y, + val_x, val_y, + position_x, position_y + ); Utils.set_color_rgba (cr, get_color ()); cr.arc (position_x, position_y, radius, 0, Math.PI * 2); cr.fill ();