diff --git a/.github/workflows/ci-win64.yml b/.github/workflows/ci-win64.yml index 5c261545..f2522d2e 100644 --- a/.github/workflows/ci-win64.yml +++ b/.github/workflows/ci-win64.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: build: - runs-on: windows-latest + runs-on: windows-2019 steps: - name: Checkout diff --git a/trdrop/headers/cpp_interface/framerateplot.h b/trdrop/headers/cpp_interface/framerateplot.h index 1334a81f..77a8a3ad 100644 --- a/trdrop/headers/cpp_interface/framerateplot.h +++ b/trdrop/headers/cpp_interface/framerateplot.h @@ -484,7 +484,7 @@ class FrameratePlot { const double manual_set_max_framerate = _shared_general_options_model->get_framerate_max_fps(); const double real_max_framerate = _shared_framerate_model->get_max_framerate_bounds(); - if (manual_set_max_framerate < real_max_framerate) return real_max_framerate; + if (manual_set_max_framerate < real_max_framerate) return manual_set_max_framerate; } //! get text offset for shadows below the text diff --git a/trdrop/headers/cpp_interface/frametimeplot.h b/trdrop/headers/cpp_interface/frametimeplot.h index 8746f29d..4416c4dc 100644 --- a/trdrop/headers/cpp_interface/frametimeplot.h +++ b/trdrop/headers/cpp_interface/frametimeplot.h @@ -437,7 +437,7 @@ class FrametimePlot { const double manual_set_max_frametime = _shared_general_options_model->get_frametime_max_ms(); const double real_max_frametime = _shared_frametime_model->get_max_frametime_bounds(); - if (manual_set_max_frametime < real_max_frametime) return real_max_frametime; + if (manual_set_max_frametime < real_max_frametime) return manual_set_max_frametime; }