Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Set default values for the colours/alpha in the Colour struct
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 18 Jun 2016 22:31:47 +0000 (23:31 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 18 Jun 2016 22:31:47 +0000 (23:31 +0100)
source/common/colour.h

index 8eebe41..93d42a6 100644 (file)
@@ -26,10 +26,10 @@ using namespace std;
 
 struct Colour{
        
-       int red;
-       int blue;
-       int green;
-       int alpha;
+       int red = 0;
+       int blue = 0;
+       int green = 0;
+       int alpha = 255;
 
        operator string() {
                
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy