]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/toggle.cpp
Support different font colors in different states
[libs/gltk.git] / source / toggle.cpp
index cb80880787e75162f3f03cc27cbe89444f17cf71..988b0a50eef4e1898fdb70f5f7e798affcce1109 100644 (file)
@@ -67,7 +67,7 @@ void Toggle::set_value(bool v)
 void Toggle::rebuild_special(const Part &part)
 {
        if(part.get_name()=="text")
-               text.build(part, geom, part_cache);
+               text.build(part, state, geom, part_cache);
 }
 
 void Toggle::button_press(int, int, unsigned btn)