From e0550eb0982eddb7944f069a38e60170d20c4daf Mon Sep 17 00:00:00 2001 From: mathias Date: Wed, 12 Jan 2005 06:22:26 +0000 Subject: cosmetic change --- src/FbTk/GContext.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/FbTk/GContext.cc b/src/FbTk/GContext.cc index 5f6f3b9..838c92e 100644 --- a/src/FbTk/GContext.cc +++ b/src/FbTk/GContext.cc @@ -34,11 +34,10 @@ namespace FbTk { Display *GContext::m_display = 0; GContext::GContext(const FbTk::FbDrawable &drawable): - m_gc(XCreateGC(m_display != 0 ? m_display : FbTk::App::instance()->display(), - drawable.drawable(), - 0, 0)) { + m_gc(XCreateGC(drawable.display(), drawable.drawable(), 0, 0)) { + if (m_display == 0) - m_display = FbTk::App::instance()->display(); + m_display = drawable.display(); setGraphicsExposure(false); } -- cgit v0.11.2