mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 14:42:29 +01:00
WINGs: Fix incorrect findCloseColor exact flag value
In case the color cannot be allocated exactly by createRGBAColor function, the findCloseColor function is used as a failover function to find a color close to the requested color. By definition that color is then not exact. createRGBAColor exact flag should be 1 while findCloseColor exact flag should be 0
This commit is contained in:
committed by
Carlos R. Mafra
parent
150816c687
commit
04e9f33437
@@ -51,7 +51,7 @@ static WMColor *findCloseColor(WMScreen * scr, unsigned short red, unsigned shor
|
||||
color->refCount = 1;
|
||||
color->color = xcolor;
|
||||
color->alpha = alpha;
|
||||
color->flags.exact = 1;
|
||||
color->flags.exact = 0;
|
||||
color->gc = NULL;
|
||||
|
||||
return color;
|
||||
|
||||
Reference in New Issue
Block a user