aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-26 22:28:24 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-26 22:28:43 +0100
commit174896d3e607ce893d752449b83c4505b28dafac (patch)
tree37ba9a780009217dc0f6ea9f4d151fad9db36cb4
parent6c089eb1d2013be14338139e8215d86b1868608c (diff)
downloadfiv-174896d3e607ce893d752449b83c4505b28dafac.tar.gz
fiv-174896d3e607ce893d752449b83c4505b28dafac.tar.xz
fiv-174896d3e607ce893d752449b83c4505b28dafac.zip
Nullify a concern
-rw-r--r--fastiv-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastiv-io.c b/fastiv-io.c
index 426d4c7..13dfa9d 100644
--- a/fastiv-io.c
+++ b/fastiv-io.c
@@ -975,7 +975,7 @@ open_xcursor(const gchar *data, gsize len, GError **error)
last_nominal = image->size;
}
- // TODO(p): Byte-swap if on big-endian. Wuffs doesn't even build there.
+ // The library automatically byte swaps in _XcursorReadImage().
cairo_surface_t *source = cairo_image_surface_create_for_data(
(unsigned char *) image->pixels, CAIRO_FORMAT_ARGB32,
image->width, image->height, image->width * sizeof *image->pixels);