mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-29 09:14:13 +00:00
Change sleep duration to unsigned
This commit is contained in:
1 parent
98210be217
commit
a879f89736
3 files changed
+8
-8
No files matched your search
+3
-3
@@ -401,7 +401,7 @@ static void inputSendThreadProc(void* context) {
|
||||
// Delay for batching if required
|
||||
if (now < lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS) {
|
||||
flushInputOnControlStream();
|
||||
PltSleepMs((int)(lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS - now));
|
||||
PltSleepMs((uint32_t)(lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS - now));
|
||||
now = PltGetMillis();
|
||||
}
|
||||
|
||||
@@ -471,7 +471,7 @@ static void inputSendThreadProc(void* context) {
|
||||
// Delay for batching if required
|
||||
if (now < lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS) {
|
||||
flushInputOnControlStream();
|
||||
PltSleepMs((int)(lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS - now));
|
||||
PltSleepMs((uint32_t)(lastMousePacketTime + MOUSE_BATCHING_INTERVAL_MS - now));
|
||||
now = PltGetMillis();
|
||||
}
|
||||
|
||||
@@ -492,7 +492,7 @@ static void inputSendThreadProc(void* context) {
|
||||
// Delay for batching if required
|
||||
if (now < lastPenPacketTime + PEN_BATCHING_INTERVAL_MS) {
|
||||
flushInputOnControlStream();
|
||||
PltSleepMs((int)(lastPenPacketTime + PEN_BATCHING_INTERVAL_MS - now));
|
||||
PltSleepMs((uint32_t)(lastPenPacketTime + PEN_BATCHING_INTERVAL_MS - now));
|
||||
now = PltGetMillis();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user