diff options
Diffstat (limited to 'src/sna/sna_present.c')
-rw-r--r-- | src/sna/sna_present.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_present.c b/src/sna/sna_present.c index 6e1beaee..e69aef20 100644 --- a/src/sna/sna_present.c +++ b/src/sna/sna_present.c @@ -164,7 +164,7 @@ static uint32_t msc_to_delay(xf86CrtcPtr crtc, uint64_t target) DBG(("%s: sleep %d frames, %llu ms\n", __FUNCTION__, (int)(target - swap->msc), (long long)delay)); assert(delay >= 0); - return delay; + return MIN(delay, INT32_MAX); } static CARD32 sna_fake_vblank_handler(OsTimerPtr timer, CARD32 now, void *data) |