diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-05-29 14:54:59 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-06-11 19:27:33 +0200 |
commit | d878999eb2b1d4833f86485a557030ce69a2e711 (patch) | |
tree | c38e343e1683659769f947c3950bb83c3c323f56 /avmedia | |
parent | 0604b16639db4cfa8f79ef0afd3ece7b8789c352 (diff) |
OGLWindow: no need to call update after changes, timer takes care of it
Change-Id: Ifc5ecf4ec3e385293889c82a3b678a8dbcd3edbb
(cherry picked from commit c90a742ed507b493fc20a5dbe68f8601217f7e4c)
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/opengl/oglwindow.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/avmedia/source/opengl/oglwindow.cxx b/avmedia/source/opengl/oglwindow.cxx index 545895de0c0b..f7f9a23d3d60 100644 --- a/avmedia/source/opengl/oglwindow.cxx +++ b/avmedia/source/opengl/oglwindow.cxx @@ -109,10 +109,6 @@ void SAL_CALL OGLWindow::setPosSize( sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidt m_rHandle.viewport.y = nY; m_rHandle.viewport.width = nWidth; m_rHandle.viewport.height = nHeight; - if( m_bVisible ) - { - update(); - } } } @@ -129,7 +125,6 @@ void SAL_CALL OGLWindow::setVisible( sal_Bool bSet ) assert(m_rEventHandler.GetParent()); if( bSet && !m_bVisible ) { - update(); m_rEventHandler.GetParent()->AddEventListener( LINK(this, OGLWindow, FocusGrabber)); m_rEventHandler.AddEventListener( LINK(this, OGLWindow, CameraHandler)); m_rEventHandler.GrabFocus(); @@ -279,7 +274,6 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent) if(nCode == KEY_S)vMoveBy += vMup*(0.0005f*fModelSize); } gltf_renderer_move_camera(&m_rHandle, vMoveBy.x, vMoveBy.y, vMoveBy.z, 0.0); - update(); } } } @@ -326,7 +320,6 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent) long nDeltaY = aCurPos.Y()-m_aLastMousePos.Y(); // TODO: It seems this method just moves the camera but not rotate it. gltf_renderer_rotate_camera(&m_rHandle, (float)nDeltaX*fSensitivity, (float)nDeltaY*fSensitivity, 0.0, 0.0); - update(); m_aLastMousePos = aCurPos; } |