]> Dogcows Code - chaz/openbox/commitdiff
make an *xft.flags: shadow flag to have per style resource shadows
authorScott Moynes <smoynes@nexus.carleton.ca>
Wed, 16 Oct 2002 02:53:49 +0000 (02:53 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Wed, 16 Oct 2002 02:53:49 +0000 (02:53 +0000)
src/Screen.cc

index 92f04532aee72ce751efd3dff6488abb22d567d9..4d15e28bc64bf0b59dac3835ccdab07fc8665cb9 100644 (file)
@@ -2732,15 +2732,18 @@ BFont *BScreen::readDatabaseFont(const string &rbasename,
     string family = s;
     bool bold = False;
     bool italic = False;
+    bool dropShadow = False;
     if (style.getValue(rbasename + "xft.flags", s)) {
       if (s.find("bold") != string::npos)
         bold = True;
       if (s.find("italic") != string::npos)
         italic = True;
+      if (s.find("shadow") != string::npos)
+        dropShadow = True;
     }
     
     BFont *b = new BFont(blackbox->getXDisplay(), this, family, i, bold,
-                         italic, resource.shadow_fonts, resource.aa_fonts);
+                         italic, dropShadow, resource.aa_fonts);
     if (b->valid())
       return b;
     else
This page took 0.024327 seconds and 4 git commands to generate.