]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.cpp
Support different font colors in different states
[libs/gltk.git] / source / button.cpp
index 58fc134cde2a9d551c80ad9b303bcd7773423304..8fd2de6cb02e2abbb15d4b41035d71b551e88ebf 100644 (file)
@@ -44,7 +44,7 @@ void Button::set_icon(const GL::Texture2D *i)
 void Button::rebuild_special(const Part &part)
 {
        if(part.get_name()=="text")
-               text.build(part, geom, part_cache);
+               text.build(part, state, geom, part_cache);
        if(part.get_name()=="icon")
        {
                if(icon)