Bump event context structure version for page flipping

Jesse Barnes 2009-12-03 14:20:51 -08:00
parent 53addc5d6e
commit 14f5958f7f
2 changed files with 2 additions and 2 deletions

View File

@ -693,7 +693,7 @@ extern void drmMsg(const char *format, ...);
extern int drmSetMaster(int fd); extern int drmSetMaster(int fd);
extern int drmDropMaster(int fd); extern int drmDropMaster(int fd);
#define DRM_EVENT_CONTEXT_VERSION 1 #define DRM_EVENT_CONTEXT_VERSION 2
typedef struct _drmEventContext { typedef struct _drmEventContext {

View File

@ -701,7 +701,7 @@ int drmHandleEvent(int fd, drmEventContextPtr evctx)
U642VOID (vblank->user_data)); U642VOID (vblank->user_data));
break; break;
case DRM_EVENT_FLIP_COMPLETE: case DRM_EVENT_FLIP_COMPLETE:
if (evctx->version < 1 || if (evctx->version < 2 ||
evctx->page_flip_handler == NULL) evctx->page_flip_handler == NULL)
break; break;
vblank = (struct drm_event_vblank *) e; vblank = (struct drm_event_vblank *) e;