]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Change State into a bitmask to allow more fine-grained control of styles
[libs/gltk.git] / source / indicator.cpp
index 86c25247e28eee4d08e6e41938f58526317ee74c..2debf35d01ee02d973f1170d6c98ad4fbe914e57 100644 (file)
@@ -18,7 +18,10 @@ Indicator::Indicator(const Resources &r):
 
 void Indicator::set_active(bool a)
 {
-       state=(a ? ACTIVE : NORMAL);
+       if(a)
+               state|=ACTIVE;
+       else
+               state&=~ACTIVE;
 }
 
 } // namespace GLtk