diff options
Diffstat (limited to 'chart2')
-rwxr-xr-x | chart2/source/view/charttypes/GL3DBarChart.cxx | 9 | ||||
-rw-r--r-- | chart2/source/view/inc/GL3DBarChart.hxx | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index 7924e48c4306..8236706db511 100755 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -26,7 +26,6 @@ #define CALC_POS_EVENT_ID 1 #define SHAPE_START_ID 10 -#define DATA_UPDATE_TIME 15 #define FPS_TIME 500 #define DATAUPDATE_FPS_TIME 1000 #define HISTORY_NUM 51 @@ -561,9 +560,9 @@ GL3DBarChart::GL3DBarChart( { mbAutoFly = atoi(aAutoFly); } - maTimer.SetTimeout(DATA_UPDATE_TIME); - maTimer.SetTimeoutHdl(LINK(this, GL3DBarChart, UpdateTimerHdl)); - maTimer.Start(); + maIdle.SetPriority(VCL_IDLE_PRIORITY_REPAINT); + maIdle.SetIdleHdl(LINK(this, GL3DBarChart, UpdateTimerHdl)); + maIdle.Start(); osl_getSystemTime(&maFPSRenderStartTime); osl_getSystemTime(&maFPSRenderEndTime); osl_getSystemTime(&maDataUpdateStartTime); @@ -1475,7 +1474,7 @@ void GL3DBarChart::processAutoFly(sal_uInt32 nId, sal_uInt32 nColor) IMPL_LINK_NOARG(GL3DBarChart, UpdateTimerHdl) { updateScreenText(); - maTimer.Start(); + maIdle.Start(); return 0; } diff --git a/chart2/source/view/inc/GL3DBarChart.hxx b/chart2/source/view/inc/GL3DBarChart.hxx index 79d816d25f88..0daeed0192a8 100644 --- a/chart2/source/view/inc/GL3DBarChart.hxx +++ b/chart2/source/view/inc/GL3DBarChart.hxx @@ -174,7 +174,7 @@ private: Point maClickPos; sal_uInt32 miScrollRate; bool mbScrollFlg; - Timer maTimer; + Idle maIdle; bool mbScreenTextNewRender; boost::ptr_vector<opengl3D::Renderable3DObject> maScreenTextShapes; OUString maFPS; |