Speed up simu display

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent ab76639301
commit 6aaae6d6be
+1 -5
View File
@@ -495,11 +495,7 @@ long OpenTxSim::onTimeout(FXObject*, FXSelector, void*)
void interrupt10ms();
interrupt10ms();
#endif
static int timeToRefresh;
if (++timeToRefresh >= 5) {
timeToRefresh = 0;
refreshDisplay();
}
refreshDisplay();
getApp()->addTimeout(this, 2, 10);
return 0;
}