From 9489358c926cd3eef4cfeb704a164e74d44caa3b Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 17 Nov 2021 12:18:37 +0100 Subject: xcursor.lua: fix file version decoding The Xcursor header file contains more documentation than there is in the actual documentation. --- plugins/xcursor.lua | 4 ++-- 1 file 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") -- cgit v1.2.3-70-g09d2