From 5c25adc4454ecf4b5cbf4c05437943bf42bf6ae2 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 4 Oct 2020 02:06:49 -0400 Subject: [PATCH] Use correct pixel ordering when loading Xcursor --- win2xcur/parser/xcursor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win2xcur/parser/xcursor.py b/win2xcur/parser/xcursor.py index 6339c89..c608eda 100644 --- a/win2xcur/parser/xcursor.py +++ b/win2xcur/parser/xcursor.py @@ -78,7 +78,7 @@ class XCursorParser(BaseParser): (image_size, image_size, len(blob))) images_by_size[nominal_size].append( - (CursorImage(image_from_pixels(blob, width, height, 'ARGB', 'char'), (x_offset, y_offset)), delay) + (CursorImage(image_from_pixels(blob, width, height, 'BGRA', 'char'), (x_offset, y_offset)), delay) ) if len(set(map(len, images_by_size.values()))) != 1: