A bit more compact and much more clear shooting info

This commit is contained in:
Ilia Popov
2010-09-18 12:33:41 +02:00
parent 173a09738b
commit 574e79e12f
2 changed files with 16 additions and 6 deletions

View File

@@ -111,7 +111,8 @@ void ImageArea::setInfoText (Glib::ustring text) {
fontd.set_weight (Pango::WEIGHT_BOLD);
fontd.set_size (12*Pango::SCALE);
context->set_font_description (fontd);
ilayout = create_pango_layout(text);
ilayout = create_pango_layout("");
ilayout->set_markup(text);
int iw, ih;
ilayout->get_pixel_size (iw, ih);
ipixbuf = Gdk::Pixbuf::create (Gdk::COLORSPACE_RGB, true, 8, iw+8, ih+8);