summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-05-29 14:54:59 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-05-29 15:05:28 +0200
commitc90a742ed507b493fc20a5dbe68f8601217f7e4c (patch)
tree466865d929ee370b23349f7c7244bd8c3774ec60 /avmedia
parentac687b4d6a1b853ca5a70e2f06b705764d400bcc (diff)
OGLWindow: no need to call update after changes, timer takes care of it
Change-Id: Ifc5ecf4ec3e385293889c82a3b678a8dbcd3edbb
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/opengl/oglwindow.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/avmedia/source/opengl/oglwindow.cxx b/avmedia/source/opengl/oglwindow.cxx
index dd43095cb017..aa29f4b8ea0b 100644
--- a/avmedia/source/opengl/oglwindow.cxx
+++ b/avmedia/source/opengl/oglwindow.cxx
@@ -96,10 +96,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();
- }
}
}
@@ -116,7 +112,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();
@@ -266,7 +261,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();
}
}
}
@@ -313,7 +307,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;
}