only store what we need to in the class
Dana Jansens danakj@orodu.net
1 files changed,
7 insertions(+),
5 deletions(-)
jump to
M
otk/rendercolor.hh
→
otk/rendercolor.hh
@@ -36,11 +36,13 @@ int _screen;
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 @@ inline int screen() const { return _screen; }
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; }; }