mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 00:50:34 +02: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:
1 parent
150816c687
commit
04e9f33437
1 file changed
+1
-1
+1
-1
@@ -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