xserver/render
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Enrico Weigelt, metux IT consult 325c403b5f
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
render: picture: make PictFormatShort equal to pixman_format_code_t
Both types are already binary equal: both are enums using the same bit values,
but from compiler's perspective they're still different types, so it's warning.

>   ../glamor/glamor_trapezoid.c:123:47: warning: implicit conversion from
>   enumeration type 'PictFormatShort' (aka 'enum _PictFormatShort') to different
>   enumeration type 'pixman_format_code_t' [-Wenum-conversion]
>     123 |     image = pixman_image_create_bits(picture->format,
>          |             ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~^~~~~~
>    1 warning generated.

The PICT_* fields, values and macros are relics from pre-pixman days (pixman,
historically, essentially is the PICT_* stuff moved out to separate library)
This has been a practical way for doing the transition from the old internal
PICT_* code to pixman. Now it's time to finish it all up and drop the extra
glue layer.

In order to make it smooth, and also providing backwards compatibility for
drivers (until they all keep up), just aliasing the types and adding #define's
for the enum values.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-06 13:49:13 +02:00
..
animcur.c render: fix CVE-2025-49175 2025-06-17 20:01:25 +02:00
filter.c render: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
glyph.c render: drop obsolete including of colormapst.h 2025-06-12 17:21:43 +02:00
glyphstr.h
glyphstr_priv.h
matrix.c render: drop obsolete including of colormapst.h 2025-06-12 17:21:43 +02:00
meson.build treewide: remove "lib" prefix in static_library names (meson) 2025-07-03 12:01:52 +02:00
miindex.c render: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
mipict.c render: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
mipict.h
mirect.c render: use NULL instead of NullClient 2025-07-18 22:24:55 +02:00
mitrap.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mitri.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
picture.c render: picture.c.: move PictureScreenClose to post-hooks 2025-07-23 15:25:37 +02:00
picture.h render: picture: make PictFormatShort equal to pixman_format_code_t 2025-08-06 13:49:13 +02:00
picturestr.h treewide: preemptively revert !1714 where it affects ABI compatibility 2025-06-16 10:32:48 +02:00
picturestr_priv.h rename old symbol PANORAMIX to XINERAMA 2025-02-06 15:51:27 +00:00
render.c render: fix CVE-2025-49175 2025-06-17 20:01:25 +02:00