diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2014-11-07 11:21:23 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:52 +0000 |
commit | 5849d637faba09b2a67d7d3c355d1e1b5ce52380 (patch) | |
tree | 54fd339b6928952bdb61ee910660b36d5acb5369 /chart2 | |
parent | 466c7b01e290513fdd252cd1783786e5521baacf (diff) |
changed timers to idle
Change-Id: Ibdecb970f7e6119929ec172e56d986c682008487
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; |