From 50a29ffbfbe999167f07324b2bc18aa8a7ec2d84 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Sat, 27 Feb 2010 10:13:41 +0100 Subject: [PATCH] LED color widget: fix the clipping circle --- src/led-color-widgets.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/led-color-widgets.vala b/src/led-color-widgets.vala index 258faec..867b3ab 100644 --- a/src/led-color-widgets.vala +++ b/src/led-color-widgets.vala @@ -47,7 +47,7 @@ class LedColorWidget : Gtk.DrawingArea { ctx.clip (); ctx.new_path (); - ctx.arc (width / 2.0, height / 2.0, width / 2.0, 0, 2 * Math.PI); + ctx.arc (width / 2.0, height / 2.0, Math.fmin (width, height) / 2.0, 0, 2 * Math.PI); ctx.clip (); -- 1.7.9.5