commit 74b4842

Michael Forney  ·  2019-08-29 06:34:23 +0000 UTC
parent 029cdb9
drm: Use page_flip_handler2
1 files changed,  +3, -3
+3, -3
 1@@ -1,6 +1,6 @@
 2 /* swc: drm.c
 3  *
 4- * Copyright (c) 2013, 2014 Michael Forney
 5+ * Copyright (c) 2013-2019 Michael Forney
 6  *
 7  * Permission is hereby granted, free of charge, to any person obtaining a copy
 8  * of this software and associated documentation files (the "Software"), to deal
 9@@ -213,7 +213,7 @@ handle_vblank(int fd, unsigned int sequence, unsigned int sec, unsigned int usec
10 }
11 
12 static void
13-handle_page_flip(int fd, unsigned int sequence, unsigned int sec, unsigned int usec, void *data)
14+handle_page_flip(int fd, unsigned int sequence, unsigned int sec, unsigned int usec, unsigned int crtc_id, void *data)
15 {
16 	struct drm_handler *handler = data;
17 
18@@ -223,7 +223,7 @@ handle_page_flip(int fd, unsigned int sequence, unsigned int sec, unsigned int u
19 static drmEventContext event_context = {
20 	.version = DRM_EVENT_CONTEXT_VERSION,
21 	.vblank_handler = handle_vblank,
22-	.page_flip_handler = handle_page_flip,
23+	.page_flip_handler2 = handle_page_flip,
24 };
25 
26 static int