summaryrefslogtreecommitdiff
path: root/src/FbTk/FbPixmap.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbPixmap.hh')
-rw-r--r--src/FbTk/FbPixmap.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FbTk/FbPixmap.hh b/src/FbTk/FbPixmap.hh
index 2935978..dab364a 100644
--- a/src/FbTk/FbPixmap.hh
+++ b/src/FbTk/FbPixmap.hh
@@ -77,12 +77,19 @@ public:
77 unsigned int width, unsigned int height, 77 unsigned int width, unsigned int height,
78 unsigned int depth); 78 unsigned int depth);
79 79
80 /* Will be reset to false whenever this pixmap is reassigned */
81 void dontFree() { m_dont_free = true; }
82
80private: 83private:
81 void free(); 84 void free();
85
82 Pixmap m_pm; 86 Pixmap m_pm;
83 unsigned int m_width, m_height; 87 unsigned int m_width, m_height;
84 unsigned int m_depth; 88 unsigned int m_depth;
85 89
90 // if pixmap not *owned* by this object (eg assigned from cache object)
91 bool m_dont_free;
92
86 /// Functions relating to the maintenance of root window pixmap caching 93 /// Functions relating to the maintenance of root window pixmap caching
87 static void checkAtoms(); 94 static void checkAtoms();
88 95