1.1 --- a/GUI/SensorNotifyIcon.cs Sat Mar 27 19:55:09 2010 +0000
1.2 +++ b/GUI/SensorNotifyIcon.cs Fri Apr 02 16:05:07 2010 +0000
1.3 @@ -191,8 +191,12 @@
1.4 return IconFactory.Create(bytes, 16, 16, PixelFormat.Format32bppArgb);
1.5 }
1.6
1.7 - private Icon CreateLoadIcon() {
1.8 - graphics.Clear(Color.Transparent);
1.9 + private Icon CreateLoadIcon() {
1.10 + try {
1.11 + graphics.Clear(Color.Transparent);
1.12 + } catch (ArgumentException) {
1.13 + graphics.Clear(Color.Black);
1.14 + }
1.15 graphics.FillRectangle(darkBrush, 0.5f, -0.5f, 14, 16);
1.16 float y = 0.16f * (100 - sensor.Value.Value);
1.17 graphics.FillRectangle(brush, 0.5f, -0.5f + y, 14, 16 - y);