From 7de8635abb8931a692312da620bfa3befce93ddc Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 1 Nov 2002 02:04:13 +0000 Subject: [PATCH] catch last woodblock changes in head since 2_2 before i went ape shit and rm'd everything. --- src/Screen.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 2351abcc..d6fc2d16 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -2307,8 +2307,9 @@ bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { for (; it != end; ++it) { const string& fname = *it; - if (fname[fname.size()-1] == '~') - continue; + //ignore backups and dot files + if (fname[fname.size()-1] == '~' || fname[0] == '.') + continue; string style = stylesdir; style += '/'; @@ -2743,11 +2744,13 @@ BFont *BScreen::readDatabaseFont(const string &rbasename, offset = 1; } - unsigned char tint = 0x40; + int tint = 25; if (style.getValue(rbasename + "xft.shadow.tint", s)) { tint = atoi(s.c_str()); } + if (tint > 100) tint = 100; + else if (tint < -100) tint = -100; BFont *b = new BFont(blackbox->getXDisplay(), this, family, i, bold, italic, dropShadow && resource.shadow_fonts, offset, -- 2.34.1