summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-13 04:52:08 +0000
committerDana Jansens <danakj@orodu.net>2003-02-13 04:52:08 +0000
commit0ebf6a17547f75c1fa961acbf3fdd59c0e494d22 (patch)
tree4f615819b5b289d892c3611d05cab77348a39345
parente451c08ac5a103362adbece9b8a11a16ade739c1 (diff)
only store what we need to in the class
-rw-r--r--otk/rendercolor.hh12
1 files changed, 7 insertions, 5 deletions
diff --git a/otk/rendercolor.hh b/otk/rendercolor.hh
index 8ed8ce58..da022a10 100644
--- a/otk/rendercolor.hh
+++ b/otk/rendercolor.hh
@@ -36,11 +36,13 @@ private:
unsigned char _red;
unsigned char _green;
unsigned char _blue;
- unsigned long _pixel;
- GC _gc;
+ mutable unsigned long _pixel;
+ mutable GC _gc;
- void create();
+ mutable bool _allocated;
+
+ void create() const;
public:
static void initialize();
@@ -55,8 +57,8 @@ public:
inline unsigned char red() const { return _red; }
inline unsigned char green() const { return _green; }
inline unsigned char blue() const { return _blue; }
- inline unsigned long pixel() const { return _pixel; }
- inline GC gc() const { return _gc; }
+ unsigned long pixel() const;
+ GC gc() const;
};
}