X-Git-Url: http://git.tdb.fi/?p=netvis.git;a=blobdiff_plain;f=source%2Fhost.cpp;h=bd93de190a1e6217bf1f1d7d3b23e7ca7ad80632;hp=991e7741a04eb9a4acef1292992c707f08456b40;hb=6ffe2b950143c5474659cbca2bbcdf58d6b8322c;hpb=dca5eb6c41ea4315203fdf8edaa81e7f6575cca5 diff --git a/source/host.cpp b/source/host.cpp index 991e774..bd93de1 100644 --- a/source/host.cpp +++ b/source/host.cpp @@ -163,7 +163,9 @@ void Host::render_label() const GL::translate(static_cast(pos.x)-static_cast(font.get_string_width(short_name)*5), static_cast(pos.y)+6, 0); GL::scale_uniform(10); - font.draw_string(short_name); + GL::Immediate imm((GL::COLOR4_UBYTE, GL::TEXCOORD2, GL::VERTEX2)); + imm.color(1.0f, 1.0f, 1.0f); + font.draw_string(short_name, imm); GL::pop_matrix(); }