summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger/nvflinger.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-24 23:11:32 +0100
committerLioncash <mathew1800@gmail.com>2019-03-24 23:12:17 +0100
commitc5d41fd812d7eb1a04f36b76c08fe971cee0868c (patch)
tree420a9ba00464d14b55e4346ae3951c61f7999cdc /src/core/hle/service/nvflinger/nvflinger.cpp
parentMerge pull request #2232 from lioncash/transfer-memory (diff)
downloadyuzu-c5d41fd812d7eb1a04f36b76c08fe971cee0868c.tar
yuzu-c5d41fd812d7eb1a04f36b76c08fe971cee0868c.tar.gz
yuzu-c5d41fd812d7eb1a04f36b76c08fe971cee0868c.tar.bz2
yuzu-c5d41fd812d7eb1a04f36b76c08fe971cee0868c.tar.lz
yuzu-c5d41fd812d7eb1a04f36b76c08fe971cee0868c.tar.xz
yuzu-c5d41fd812d7eb1a04f36b76c08fe971cee0868c.tar.zst
yuzu-c5d41fd812d7eb1a04f36b76c08fe971cee0868c.zip
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.cpp')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index fc496b654..c7f5bbf28 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -26,7 +26,7 @@
namespace Service::NVFlinger {
constexpr std::size_t SCREEN_REFRESH_RATE = 60;
-constexpr u64 frame_ticks = static_cast<u64>(Core::Timing::BASE_CLOCK_RATE / SCREEN_REFRESH_RATE);
+constexpr s64 frame_ticks = static_cast<s64>(Core::Timing::BASE_CLOCK_RATE / SCREEN_REFRESH_RATE);
NVFlinger::NVFlinger(Core::Timing::CoreTiming& core_timing) : core_timing{core_timing} {
displays.emplace_back(0, "Default");
@@ -37,7 +37,7 @@ NVFlinger::NVFlinger(Core::Timing::CoreTiming& core_timing) : core_timing{core_t
// Schedule the screen composition events
composition_event =
- core_timing.RegisterEvent("ScreenComposition", [this](u64 userdata, int cycles_late) {
+ core_timing.RegisterEvent("ScreenComposition", [this](u64 userdata, s64 cycles_late) {
Compose();
this->core_timing.ScheduleEvent(frame_ticks - cycles_late, composition_event);
});