Fix: Globally fixing the "milisecond" typo in the code (#13329)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Alexandre Folle de Menezes
2026-04-23 10:34:36 -03:00
committed by GitHub
parent 5fad57fe48
commit 2461bbd279
6 changed files with 14 additions and 14 deletions

View File

@@ -3993,14 +3993,14 @@ void GLCanvas3D::on_set_color_timer(wxTimerEvent& evt)
}
void GLCanvas3D::schedule_extra_frame(int miliseconds)
void GLCanvas3D::schedule_extra_frame(int milliseconds)
{
// Schedule idle event right now
if (miliseconds == 0)
if (milliseconds == 0)
{
// We want to wakeup idle evnt but most likely this is call inside render cycle so we need to wait
// We want to wakeup idle event but most likely this is call inside render cycle so we need to wait
if (m_in_render)
miliseconds = 33;
milliseconds = 33;
else {
m_dirty = true;
wxWakeUpIdle();
@@ -4010,12 +4010,12 @@ void GLCanvas3D::schedule_extra_frame(int miliseconds)
int remaining_time = m_render_timer.GetInterval();
// Timer is not running
if (!m_render_timer.IsRunning()) {
m_render_timer.StartOnce(miliseconds);
// Timer is running - restart only if new period is shorter than remaning period
m_render_timer.StartOnce(milliseconds);
// Timer is running - restart only if new period is shorter than remaining period
} else {
if (miliseconds + 20 < remaining_time) {
if (milliseconds + 20 < remaining_time) {
m_render_timer.Stop();
m_render_timer.StartOnce(miliseconds);
m_render_timer.StartOnce(milliseconds);
}
}
}