diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-13 05:12:55 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-13 05:29:23 +0200 |
commit | 9fbafe9fe867fa727ce38612bd24431afd0100c1 (patch) | |
tree | d00bfa3705c1ff2633834c748f2f5526ec2f0ce4 /vcl | |
parent | f02999aa267c40876f29edf37d39694b619e69ba (diff) |
rerender after redrawing of the window
Change-Id: Ia967ba08a9bd0499ae5fb0865492783834204963
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/openglwin.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/vcl/source/window/openglwin.cxx b/vcl/source/window/openglwin.cxx index 77ab2d9ea82d..c1716b723af6 100644 --- a/vcl/source/window/openglwin.cxx +++ b/vcl/source/window/openglwin.cxx @@ -32,7 +32,8 @@ OpenGLContext* OpenGLWindowImpl::getContext() OpenGLWindow::OpenGLWindow(Window* pParent): SystemChildWindow(pParent, 0), - mpImpl(new OpenGLWindowImpl(this)) + mpImpl(new OpenGLWindowImpl(this)), + mpRenderer(NULL) { } @@ -45,6 +46,12 @@ OpenGLContext* OpenGLWindow::getContext() return mpImpl->getContext(); } +void OpenGLWindow::Paint(const Rectangle&) +{ + if(mpRenderer) + mpRenderer->update(); +} + void OpenGLWindow::MouseButtonDown( const MouseEvent& rMEvt ) { Point aPoint = rMEvt.GetPosPixel(); @@ -53,4 +60,9 @@ void OpenGLWindow::MouseButtonDown( const MouseEvent& rMEvt ) SAL_WARN("vcl.opengl", aColor.GetColor()); } +void OpenGLWindow::setRenderer(IRenderer* pRenderer) +{ + mpRenderer = pRenderer; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |