macos: align image surface rowstride to 16-bytes
authorChristian Hergert <christian@hergert.me>
Fri, 4 Feb 2022 02:21:43 +0000 (18:21 -0800)
committerChristian Hergert <christian@hergert.me>
Fri, 4 Feb 2022 03:26:16 +0000 (19:26 -0800)
commit4373743d4c76637dac308f418d4e0f1090aa630f
treee21648b913ba4bf93c54b4466314302aa0f047a0
parent58159552baf9789bf1724d468a78876eac5104d0
macos: align image surface rowstride to 16-bytes

When creating a cairo_image_surface_t we want both the framebuffer pointer
and each row to be aligned to 16-bytes so that Core Graphics will use more
optimal paths.

However, cairo_image_surface_create() will not guarantee that the rowstride
is aligned to 16-bytes so we must do that ourselves.
gdk/macos/gdkmacoscairocontext.c