diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-24 00:02:24 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-24 00:02:24 +0000 |
| commit | 406c79aea1b6f9c8bd1bbeb253ebc7cb97fc7e25 (patch) | |
| tree | e960abd6eee0027442a1b6a2122a13b19984341a /otk | |
| parent | f1951eaae2b377b1db1fdbdd236e84b4ef2e8c60 (diff) | |
out with the blackbox source
Diffstat (limited to 'otk')
| -rw-r--r-- | otk/display.cc | 7 | ||||
| -rw-r--r-- | otk/display.hh | 14 |
2 files changed, 1 insertions, 20 deletions
diff --git a/otk/display.cc b/otk/display.cc index 367ee3eb..af03801e 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -6,7 +6,6 @@ #include "display.hh" #include "screeninfo.hh" -#include "gccache.hh" #include "rendercontrol.hh" #include "util.hh" @@ -85,8 +84,7 @@ Display::Display() _scroll_lock_mask(0), _grab_count(0), _screeninfo_list(0), - _rendercontrol_list(0), - _gccache((GCCache*) 0) + _rendercontrol_list(0) { int junk; (void)junk; @@ -175,14 +173,11 @@ DISPLAY environment variable approriately.\n\n")); _screeninfo_list[i] = new ScreenInfo(i); _rendercontrol_list[i] = RenderControl::getRenderControl(i); } - - _gccache = new GCCache(ScreenCount(_display)); } Display::~Display() { - delete _gccache; while (_grab_count > 0) ungrab(); diff --git a/otk/display.hh b/otk/display.hh index 28d33675..0879ce32 100644 --- a/otk/display.hh +++ b/otk/display.hh @@ -9,7 +9,6 @@ extern "C" { namespace otk { class ScreenInfo; -class GCCache; class RenderControl; class Display; @@ -58,16 +57,6 @@ private: //! screen RenderControl** _rendercontrol_list; - //! A cache for re-using GCs, used by the drawing objects - /*! - @see Pen - @see Font - @see Image - @see ImageControl - @see Texture - */ - GCCache *_gccache; - // Handles X errors on the display /* Displays the error if compiled for debugging. @@ -84,9 +73,6 @@ public: //! Destroys the class, closes the X display ~Display(); - //! Returns the GC cache for the application - inline GCCache *gcCache() const { return _gccache; } - //! Gets information on a specific screen /*! Returns a ScreenInfo class, which contains information for a screen on the |
