cosmetic change
mathias mathias
1 files changed,
3 insertions(+),
4 deletions(-)
jump to
M
src/FbTk/GContext.cc
→
src/FbTk/GContext.cc
@@ -34,11 +34,10 @@
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); }