X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fstyle.cc;fp=otk%2Fstyle.cc;h=277924d6d9b4e63d90f94c3af57b67d95efde838;hb=6b977b2ded0b8807dd05bb7ee0c318612600027d;hp=3c40e24bb5fcc87773aac642c50b45b881c8de5d;hpb=804b8cc6e5913913a76894a753619590a291c204;p=chaz%2Fopenbox diff --git a/otk/style.cc b/otk/style.cc index 3c40e24b..277924d6 100644 --- a/otk/style.cc +++ b/otk/style.cc @@ -156,32 +156,6 @@ void Style::load(const Configuration &style) { } -void Style::doJustify(const std::string &text, int &start_pos, - unsigned int max_length, - unsigned int modifier) const { - size_t text_len = text.size(); - unsigned int length; - - do { - length = font->measureString(std::string(text, 0, text_len)) + modifier; - } while (length > max_length && text_len-- > 0); - - switch (justify) { - case RightJustify: - start_pos += max_length - length; - break; - - case CenterJustify: - start_pos += (max_length - length) / 2; - break; - - case LeftJustify: - default: - break; - } -} - - void Style::readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask, const Configuration &style) { Window root_window = OBDisplay::screenInfo(screen_number)->getRootWindow();