diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-17 12:18:37 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-17 12:18:37 +0100 |
commit | 9489358c926cd3eef4cfeb704a164e74d44caa3b (patch) | |
tree | 3eb0c28258572721c57fd9a2f5e5cf226d0b36dd /plugins/xcursor.lua | |
parent | a539a5510f06aa902d0d2658a9fc2242c0ce69b3 (diff) | |
download | hex-9489358c926cd3eef4cfeb704a164e74d44caa3b.tar.gz hex-9489358c926cd3eef4cfeb704a164e74d44caa3b.tar.xz hex-9489358c926cd3eef4cfeb704a164e74d44caa3b.zip |
xcursor.lua: fix file version decoding
The Xcursor header file contains more documentation than there is
in the actual documentation.
Diffstat (limited to 'plugins/xcursor.lua')
-rw-r--r-- | plugins/xcursor.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/xcursor.lua b/plugins/xcursor.lua index 932fd6f..740736f 100644 --- a/plugins/xcursor.lua +++ b/plugins/xcursor.lua @@ -29,9 +29,9 @@ local decode = function (c) local size = c:u32 ("header size: %d") -- TODO: check the version, although it is essentially set in stone - -- as 1.0.0, with X.org being a nearly abandoned project + -- as 1.0, with X.org being a nearly abandoned project local version = c:u32 ("file version: %s", function (u32) - return "%d.%d.%d", u32 >> 16, (u32 >> 8) & 255, u32 & 255 + return "%d.%d", u32 >> 16, u32 & 0xffff end) local ntoc = c:u32 ("number of ToC entries: %d") |