summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-29 01:16:12 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:01:48 +0200
commit5bdc19ef7b62b629412ed3bfac8239fc44e35380 (patch)
treec6842e2763d1adb229bf288dd5fb51680446ed71 /vcl
parent00c7916459ee175e36dcea80c6f7d5db5caff3c5 (diff)
let us not call getenv for each window
Change-Id: I26c34e9fa4efa34ac47343b4c0894c23bba0c13f
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index d0d0c2c48bb5..d465adb3aab2 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -734,7 +734,8 @@ WindowImpl::WindowImpl( WindowType nType )
mbFill = true;
mbSecondary = false;
mbNonHomogeneous = false;
- mbDoubleBufferingRequested = getenv("VCL_DOUBLEBUFFERING_FORCE_ENABLE"); // when we are not sure, assume it cannot do double-buffering via RenderContext
+ static bool bDoubleBuffer = getenv("VCL_DOUBLEBUFFERING_FORCE_ENABLE");
+ mbDoubleBufferingRequested = bDoubleBuffer; // when we are not sure, assume it cannot do double-buffering via RenderContext
}
WindowImpl::~WindowImpl()