diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-13 08:48:03 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-13 08:48:03 +0000 |
| commit | c97915f445017d36667a6ad32767fa41d14d23b1 (patch) | |
| tree | 66ea465799a6b00ef1361a44774d4610ca6ca814 /otk/gccache.cc | |
| parent | 9e77a88d269bfafb78e56a646bfacebdd6ff4c5a (diff) | |
un-static otk::Display. add an operator* to it. make a global ob::display var.
Diffstat (limited to 'otk/gccache.cc')
| -rw-r--r-- | otk/gccache.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/otk/gccache.cc b/otk/gccache.cc index 02d3b80b..554fd143 100644 --- a/otk/gccache.cc +++ b/otk/gccache.cc @@ -19,7 +19,7 @@ namespace otk { GCCacheContext::~GCCacheContext(void) { if (gc) - XFreeGC(Display::display, gc); + XFreeGC(**display, gc); } @@ -44,7 +44,7 @@ void GCCacheContext::set(const Color &_color, fontid = 0; } - XChangeGC(Display::display, gc, mask, &gcv); + XChangeGC(**display, gc, mask, &gcv); } @@ -56,7 +56,7 @@ void GCCacheContext::set(const XFontStruct * const _font) { XGCValues gcv; fontid = gcv.font = _font->fid; - XChangeGC(Display::display, gc, GCFont, &gcv); + XChangeGC(**display, gc, GCFont, &gcv); } @@ -86,7 +86,7 @@ GCCache::~GCCache(void) { GCCacheContext *GCCache::nextContext(unsigned int scr) { - Window hd = Display::screenInfo(scr)->rootWindow(); + Window hd = display->screenInfo(scr)->rootWindow(); GCCacheContext *c; @@ -94,7 +94,7 @@ GCCacheContext *GCCache::nextContext(unsigned int scr) { c = contexts[i]; if (! c->gc) { - c->gc = XCreateGC(Display::display, hd, 0, 0); + c->gc = XCreateGC(**display, hd, 0, 0); c->used = false; c->screen = scr; } |
