]> Dogcows Code - chaz/openbox/commitdiff
get default line width to 1, and make it a more easily used parameter in BPen
authorDana Jansens <danakj@orodu.net>
Fri, 23 Aug 2002 05:35:34 +0000 (05:35 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 23 Aug 2002 05:35:34 +0000 (05:35 +0000)
src/GCCache.hh

index 536a474649381a19d556346787c7af1e03232cb3..fc4ba1332129378210ead46b40b91aa05549539e 100644 (file)
@@ -44,7 +44,7 @@ public:
 private:
   BGCCacheContext(const BaseDisplay * const _display)
     : display(_display), gc(0), pixel(0ul), fontid(0ul),
-      function(0), subwindow(0), used(false), screen(~(0u)), _linewidth(0) {}
+      function(0), subwindow(0), used(false), screen(~(0u)), linewidth(1) {}
 
   const BaseDisplay *display;
   GC gc;
@@ -113,10 +113,10 @@ private:
 class BPen {
 public:
   inline BPen(const BColor &_color,  const XFontStruct * const _font = 0,
-              int _function = GXcopy, int _subwindow = ClipByChildren,
-              int _linewidth = 0)
-    : color(_color), font(_font), function(_function), subwindow(_subwindow),
-      cache(_color.display()->gcCache()), item(0), linewidth(_linewidth) { }
+              int _linewidth = 1, int _function = GXcopy,
+              int _subwindow = ClipByChildren)
+    : color(_color), font(_font), linewidth(_linewidth), function(_function),
+      subwindow(_subwindow), cache(_color.display()->gcCache()), item(0) { }
 
   inline ~BPen(void) { if (item) cache->release(item); }
 
@@ -129,9 +129,9 @@ public:
 private:
   const BColor &color;
   const XFontStruct *font;
+  int linewidth;
   int function;
   int subwindow;
-  int linewidth;
 
   mutable BGCCache *cache;
   mutable BGCCacheItem *item;
This page took 0.028542 seconds and 4 git commands to generate.