Ensure we use all details of borders when caching them

This commit is contained in:
Jack Zeal 2026-04-01 19:43:20 -07:00
parent fe44a2e9b3
commit b07165f154
2 changed files with 3 additions and 1 deletions

View file

@ -24,7 +24,7 @@ struct borderset * getBorders(uint32_t id, int size, enum border_type type, int
}
while (current != NULL) {
if (current->size == size && current->id == id && current->type == type) {
if (current->size == size && current->id == id && current->type == type && current->bevelSize == bevelSize) {
return current;
}
last = current;
@ -50,6 +50,7 @@ struct borderset * createBuffer(uint32_t id, int size, enum border_type type, i
newBorderset->id = id;
newBorderset->size = size;
newBorderset->type = type;
newBorderset->bevelSize = bevelSize;
// Use ID as a AARRGGBB colour