diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2019-12-11 17:04:43 -0600 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2019-12-11 17:04:43 -0600 |
commit | bd7c40192e83d267c03519783b442ab6fbd48c5a (patch) | |
tree | cd3ef2f9477139b4d472e1f2bcb6f29498e0ce4a /src | |
parent | 44b2e9fda7bb128ab9b5dd90c2d9b3b54ae182c5 (diff) |
Eliminate compilation warnings with XF86AttributeRec struct
In particular, with name member. The original struct name is
XvAttributeRec (the struct is renamed to XF86AttributeRec by
include/xorg/xf86xv.h) declared inside include/xorg/xvdix.h.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/via_xv.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/via_xv.c b/src/via_xv.c index 001f3f1..0299a22 100644 --- a/src/via_xv.c +++ b/src/via_xv.c @@ -139,13 +139,21 @@ static XF86VideoFormatRec FormatsG[NUM_FORMATS_G] = { #define NUM_ATTRIBUTES_G 6 +static char attributeXvColorkey[] = { "XV_COLORKEY" }; +static char attributeXvBrightness[] = { "XV_BRIGHTNESS" }; +static char attributeXvContrast[] = { "XV_CONTRAST" }; +static char attributeXvSaturation[] = { "XV_SATURATION" }; +static char attributeXvHue[] = { "XV_HUE" }; +static char attributeXvAutopaintColorkey[] = + { "XV_AUTOPAINT_COLORKEY" }; + static XF86AttributeRec AttributesG[NUM_ATTRIBUTES_G] = { - {XvSettable | XvGettable, 0, (1 << 24) - 1, "XV_COLORKEY"}, - {XvSettable | XvGettable, 0, 10000, "XV_BRIGHTNESS"}, - {XvSettable | XvGettable, 0, 20000, "XV_CONTRAST"}, - {XvSettable | XvGettable, 0, 20000, "XV_SATURATION"}, - {XvSettable | XvGettable, -180, 180, "XV_HUE"}, - {XvSettable | XvGettable, 0, 1, "XV_AUTOPAINT_COLORKEY"} + {XvSettable | XvGettable, 0, (1 << 24) - 1, attributeXvColorkey}, + {XvSettable | XvGettable, 0, 10000, attributeXvBrightness}, + {XvSettable | XvGettable, 0, 20000, attributeXvContrast}, + {XvSettable | XvGettable, 0, 20000, attributeXvSaturation}, + {XvSettable | XvGettable, -180, 180, attributeXvHue}, + {XvSettable | XvGettable, 0, 1, attributeXvAutopaintColorkey} }; #define NUM_IMAGES_G 7 |