diff options
-rw-r--r-- | kms++/src/card.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp index 12bdef6..d8d89b2 100644 --- a/kms++/src/card.cpp +++ b/kms++/src/card.cpp @@ -217,11 +217,9 @@ static void page_flip_handler(int fd, unsigned int frame, void Card::call_page_flip_handlers() { - drmEventContext ev = { - .version = DRM_EVENT_CONTEXT_VERSION, - .vblank_handler = 0, - .page_flip_handler = page_flip_handler, - }; + drmEventContext ev { }; + ev.version = DRM_EVENT_CONTEXT_VERSION; + ev.page_flip_handler = page_flip_handler; drmHandleEvent(fd(), &ev); } |