X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftext.cpp;h=b408bbe1780040cef29e600d2dab1b504b2d41b8;hb=a40fc85277dba5c34402a0e703d038efd30cc57b;hp=dfb88e3fcc1e8553721eeaf100735cf616fe4f6f;hpb=2fa1bb084e54af7134b44d3ee7512056e28de67e;p=libs%2Fgl.git diff --git a/source/text.cpp b/source/text.cpp index dfb88e3f..b408bbe1 100644 --- a/source/text.cpp +++ b/source/text.cpp @@ -36,7 +36,7 @@ void Text::set_text(const string &text, StringCodec::Decoder &dec) clear(); width = font.get_string_width(text, dec); MeshBuilder bld(mesh); - bld.matrix() *= Matrix::translation(Vector3(-horz_align*width, vert_offset, 0.0f)); + bld.transform(Matrix::translation(Vector3(-horz_align*width, vert_offset, 0.0f))); font.build_string(text, dec, bld); }