X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbutton.cpp;h=57e5fa42f57981cfb3398576b5a6563b3d5b4843;hb=c2664a6da9ee4a9fc3cb1adb42442412b45c7333;hp=58fc134cde2a9d551c80ad9b303bcd7773423304;hpb=d2d5b4c4dedf90a42dd2baff8334318b1d000f64;p=libs%2Fgltk.git diff --git a/source/button.cpp b/source/button.cpp index 58fc134..57e5fa4 100644 --- a/source/button.cpp +++ b/source/button.cpp @@ -16,7 +16,7 @@ Button::Button(const std::string &t): set_text(t); } -void Button::autosize_special(const Part &part, Geometry &ageom) +void Button::autosize_special(const Part &part, Geometry &ageom) const { if(part.get_name()=="text") text.autosize(part, ageom); @@ -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)