X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fwidget.cpp;h=aa05675b97c1c989c499916247173785593dad5c;hp=5fc208268d06e117d7b181b6542154fbf47eb450;hb=a87517d7595e71ddcbd8df1d2f637e0f9db0467f;hpb=f6c2be892f59314e5d93913763303b655787a20d diff --git a/source/widget.cpp b/source/widget.cpp index 5fc2082..aa05675 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -215,8 +215,8 @@ void Widget::render(GL::Renderer &renderer) const if(!style) throw logic_error(format("Attempt to render a widget with null style (class=\"%s\", style_name=\"%s\")", get_class(), style_name)); - GL::MatrixStack::Push _pushm(renderer.matrix_stack()); - renderer.matrix_stack() *= GL::Matrix::translation(geom.x, geom.y, 0); + GL::Renderer::Push _push(renderer); + renderer.transform(GL::Matrix::translation(geom.x, geom.y, 0)); const PartCache::PartList &parts = part_cache.get_parts(); for(PartCache::PartList::const_iterator i=parts.begin(); i!=parts.end(); ++i) {