]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/text.cpp
Adjust things to conform to changes in other libraries
[libs/gltk.git] / source / text.cpp
index 86730757fd6c93889b772ac648bbcd4913a98c85..bd358032c65ff22d6f1cee3d83af64f5570e6909 100644 (file)
@@ -339,9 +339,9 @@ void Text::build_line(unsigned i, const Geometry &rgeom, RenderData &data) const
 {
        const Line &line = lines[i];
 
-       GL::MatrixStack::Push _pushm(data.bld->matrix());
-       data.bld->matrix() *= GL::Matrix::translation(rgeom.x, rgeom.y, 0);
-       data.bld->matrix() *= GL::Matrix::scaling(style->get_font_size());
+       GL::VertexBuilder::PushMatrix _pushm(*data.bld);
+       data.bld->transform(GL::Matrix::translation(rgeom.x, rgeom.y, 0));
+       data.bld->transform(GL::Matrix::scaling(style->get_font_size()));
 
        style->get_font().build_string(text.substr(line.start, line.bytes), *data.bld);
 }