comparison widgets/LEDButton.cpp @ 984:e8949ccb4f4e osx-retina

Fix dark point at highlight of LED button
author Chris Cannam
date Tue, 30 Jun 2015 15:06:47 +0100
parents 04337eb34f23
children 3f5c82034f9b
comparison
equal deleted inserted replaced
983:04337eb34f23 984:e8949ccb4f4e
172 break; 172 break;
173 paint.drawEllipse( pos, pos, light_width, light_width ); 173 paint.drawEllipse( pos, pos, light_width, light_width );
174 pos++; light_width--; 174 pos++; light_width--;
175 } 175 }
176 176
177 paint.drawPoint(pos, pos);
178
177 // Drawing of bright spot finished, now draw a thin border 179 // Drawing of bright spot finished, now draw a thin border
178 // around the LED which resembles a shadow with light coming 180 // around the LED which resembles a shadow with light coming
179 // from the upper left. 181 // from the upper left.
180 182
181 pen.setWidth(2); 183 pen.setWidth(2);