diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-04 17:29:49 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-10 07:59:02 +0100 |
commit | 73b1ef159b92e84c3b72fd0a772714761f5c3dac (patch) | |
tree | 90f14c4f855d2f9dd2e76b11854058d424028d4d /vcl/source/outdev/outdev.cxx | |
parent | b9818384ce48cca0c1eb38a611d1eff8383a2bcd (diff) |
vcl: Add method to swap buffers after painting window
Change-Id: Icdf691e7e9e83d039e33d2095270290dc31f2efa
Diffstat (limited to 'vcl/source/outdev/outdev.cxx')
-rw-r--r-- | vcl/source/outdev/outdev.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx index 3c9e519cc71d..ad7779dc597d 100644 --- a/vcl/source/outdev/outdev.cxx +++ b/vcl/source/outdev/outdev.cxx @@ -839,4 +839,11 @@ bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize, return bDrawn; } +bool OutputDevice::SwapBuffers() +{ + if( !mpGraphics && !AcquireGraphics() ) + return false; + return mpGraphics->SwapBuffers(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |