mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2025-12-20 04:40:10 +01:00
xv: Build left-shift constants from ints not longs
We typically store these in ints in server, leading to warnings like:
xwayland-glamor-xv.c: In function ‘xwl_glamor_xv_add_adaptors’:
xwayland-glamor-xv.c:339:16: warning: large integer implicitly truncated
to unsigned type [-Woverflow]
pa->type = XvWindowMask | XvInputMask | XvImageMask;;
^
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
This commit is contained in:
parent
384150812b
commit
723881f31d
1 changed files with 8 additions and 8 deletions
16
Xv.h
16
Xv.h
|
|
@ -59,8 +59,8 @@ typedef XID XvEncodingID;
|
|||
#define XvInput 0
|
||||
#define XvOutput 1
|
||||
|
||||
#define XvInputMask (1L<<XvInput)
|
||||
#define XvOutputMask (1L<<XvOutput)
|
||||
#define XvInputMask (1<<XvInput)
|
||||
#define XvOutputMask (1<<XvOutput)
|
||||
#define XvVideoMask 0x00000004
|
||||
#define XvStillMask 0x00000008
|
||||
#define XvImageMask 0x00000010
|
||||
|
|
@ -100,13 +100,13 @@ typedef XID XvEncodingID;
|
|||
|
||||
#define XvNumReasons (XvLastReason + 1)
|
||||
|
||||
#define XvStartedMask (1L<<XvStarted)
|
||||
#define XvStoppedMask (1L<<XvStopped)
|
||||
#define XvBusyMask (1L<<XvBusy)
|
||||
#define XvPreemptedMask (1L<<XvPreempted)
|
||||
#define XvHardErrorMask (1L<<XvHardError)
|
||||
#define XvStartedMask (1<<XvStarted)
|
||||
#define XvStoppedMask (1<<XvStopped)
|
||||
#define XvBusyMask (1<<XvBusy)
|
||||
#define XvPreemptedMask (1<<XvPreempted)
|
||||
#define XvHardErrorMask (1<<XvHardError)
|
||||
|
||||
#define XvAnyReasonMask ((1L<<XvNumReasons) - 1)
|
||||
#define XvAnyReasonMask ((1<<XvNumReasons) - 1)
|
||||
#define XvNoReasonMask 0
|
||||
|
||||
/* Errors */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue