]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/overlay.cpp
Mscellaneous adaptations to mspgl API changes
[r2c2.git] / source / 3d / overlay.cpp
index c10a8db59121c31e35cf75d887a9172cf9f3ff90..bab469ca4cf0cb14bc3994d705498f01adf1e927 100644 (file)
@@ -84,7 +84,7 @@ void Overlay3D::render(GL::Renderer &renderer, const GL::Tag &) const
 
        glLineWidth(1);
 
-       int size = int(font.get_default_size()+0.5);
+       int size = int(font.get_native_size()+0.5);
        float spacing = round(size*1.1)/size;
        float baseline = round((0.5-font.get_ascent()*0.5-font.get_descent()*0.5)*size)/size;
 
@@ -183,7 +183,7 @@ void Overlay3D::update_icon(Icon &icon)
        {
                GL::MeshBuilder bld(icon.text);
                bld.color(0.0f, 1.0f, 0.0f);
-               font.draw_string(icon.label, bld);
+               font.build_string(icon.label, bld);
        }
 }