mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-02 22:14:47 -04:00
Update theme needs repaint; limit wxColour conversion
This commit is contained in:
@@ -42,9 +42,9 @@ public:
|
||||
|
||||
operator wxColour() {
|
||||
return wxColour(
|
||||
(unsigned char) (r * 255.0),
|
||||
(unsigned char) (g * 255.0),
|
||||
(unsigned char) (b * 255.0));
|
||||
(unsigned char) std::min((r * 255.0), 255.0),
|
||||
(unsigned char) std::min((g * 255.0), 255.0),
|
||||
(unsigned char) std::min((b * 255.0), 255.0));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user