The bitmap tracking which colours are used is not properly initialized
to zero, so the generated XPM potentially includes a bunch of garbage
in the colourmap section.
No idea why this went unnoticed before as it is completely not working
today.
/*
* Test app for _NET_WM_ICON formatting.
/*
* Test app for _NET_WM_ICON formatting.
- * Copyright © 2022-2023 Nick Bowler
+ * Copyright © 2022-2024 Nick Bowler
*
* Use a fake colour scheme to generate an icon of the chosen size (16x16,
* 24x24, 32x32 or 48x48) and display the pixels as characters.
*
* Use a fake colour scheme to generate an icon of the chosen size (16x16,
* 24x24, 32x32 or 48x48) and display the pixels as characters.
};
unsigned long prev_colour = 0;
};
unsigned long prev_colour = 0;
- unsigned used_colours, v;
+ unsigned used_colours = 0, v;
size = (unsigned long) w * h;
for (i = 0; i < size; i++) {
size = (unsigned long) w * h;
for (i = 0; i < size; i++) {