commit 74b4842586984af0843a100465046288ba938f5a
parent 029cdb9d180d628cfbe828135948ab59caa52b8d
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 28 Aug 2019 23:34:23 -0700
drm: Use page_flip_handler2
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libswc/drm.c b/libswc/drm.c
@@ -1,6 +1,6 @@
/* swc: drm.c
*
- * Copyright (c) 2013, 2014 Michael Forney
+ * Copyright (c) 2013-2019 Michael Forney
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -213,7 +213,7 @@ handle_vblank(int fd, unsigned int sequence, unsigned int sec, unsigned int usec
}
static void
-handle_page_flip(int fd, unsigned int sequence, unsigned int sec, unsigned int usec, void *data)
+handle_page_flip(int fd, unsigned int sequence, unsigned int sec, unsigned int usec, unsigned int crtc_id, void *data)
{
struct drm_handler *handler = data;
@@ -223,7 +223,7 @@ handle_page_flip(int fd, unsigned int sequence, unsigned int sec, unsigned int u
static drmEventContext event_context = {
.version = DRM_EVENT_CONTEXT_VERSION,
.vblank_handler = handle_vblank,
- .page_flip_handler = handle_page_flip,
+ .page_flip_handler2 = handle_page_flip,
};
static int