summaryrefslogtreecommitdiff
path: root/otk/rendercolor.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-17 16:36:35 +0000
committerDana Jansens <danakj@orodu.net>2003-02-17 16:36:35 +0000
commit8bf56a288f1c9e828c9a4c2bd48057de2231f5e0 (patch)
tree531b80c90d8468d170a18c903a8d217a4be983f9 /otk/rendercolor.hh
parent716ab805a0053ceb494ad9a20e058ba7aa9c5bbb (diff)
allocate colors right away instead of delaying it, since they get allocated out of the rendercontrol, and it will never fail.
Diffstat (limited to 'otk/rendercolor.hh')
-rw-r--r--otk/rendercolor.hh13
1 files changed, 5 insertions, 8 deletions
diff --git a/otk/rendercolor.hh b/otk/rendercolor.hh
index 1f24b3c9..5076167f 100644
--- a/otk/rendercolor.hh
+++ b/otk/rendercolor.hh
@@ -37,13 +37,10 @@ private:
unsigned char _green;
unsigned char _blue;
- mutable unsigned long _pixel;
- mutable GC _gc;
+ unsigned long _pixel;
+ GC _gc;
- mutable bool _allocated;
- mutable bool _created;
-
- void create() const;
+ void create();
public:
static void initialize();
@@ -58,8 +55,8 @@ public:
inline unsigned char red() const { return _red; }
inline unsigned char green() const { return _green; }
inline unsigned char blue() const { return _blue; }
- unsigned long pixel() const;
- GC gc() const;
+ unsigned long pixel() const { return _pixel; }
+ GC gc() const { return _gc; }
};
}