diff options
author | akshay-c | 2019-04-11 16:57:56 +0530 |
---|---|---|
committer | akshay-c | 2019-04-11 16:57:56 +0530 |
commit | b0c1405589824fc9f9f464683286cdac7ad139d0 (patch) | |
tree | e28f1efce0fce74e20a95f42e965f02a372b29ee /ldmicro/simulate.cpp | |
parent | b874e82bc5a6856c4b2fa4c19f98ab2269daebc6 (diff) | |
download | LDmicroQt-b0c1405589824fc9f9f464683286cdac7ad139d0.tar.gz LDmicroQt-b0c1405589824fc9f9f464683286cdac7ad139d0.tar.bz2 LDmicroQt-b0c1405589824fc9f9f464683286cdac7ad139d0.zip |
Improved cursor performance, simulation timer, drawwindow,scrollbar,closeevent, open-save dialogs, submenu-disabling
Diffstat (limited to 'ldmicro/simulate.cpp')
-rw-r--r-- | ldmicro/simulate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ldmicro/simulate.cpp b/ldmicro/simulate.cpp index 3cd9212..4a3475a 100644 --- a/ldmicro/simulate.cpp +++ b/ldmicro/simulate.cpp @@ -731,14 +731,14 @@ void SimulateOneCycle(BOOL forceRefresh) //----------------------------------------------------------------------------- void StartSimulationTimer(void) { - /* int p = Prog.cycleTime/1000; + int p = Prog.cycleTime/1000; if(p < 5) { - SetTimer(MainWindow, TIMER_SIMULATE, 10, PlcCycleTimer); + SimulateTimer = SetTimer(DrawWindow, TIMER_SIMULATE, 10, SimulateTimer); CyclesPerTimerTick = 10000 / Prog.cycleTime; } else { - SetTimer(MainWindow, TIMER_SIMULATE, p, PlcCycleTimer); + SimulateTimer = SetTimer(DrawWindow, TIMER_SIMULATE, p, SimulateTimer); CyclesPerTimerTick = 1; - }*/ + } } //----------------------------------------------------------------------------- |