mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*Draw: Improved Etched(Image) for better looking toolbars in classic mode
git-svn-id: svn://ultimatepp.org/upp/trunk@2299 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
718fca539f
commit
6e9748ca06
1 changed files with 5 additions and 4 deletions
|
|
@ -450,14 +450,15 @@ RGBA sEtchFilter::operator()(const RGBA **mx)
|
|||
{
|
||||
RGBA t;
|
||||
RGBA s = mx[1][1];
|
||||
if(s.a == 255 && s.r + s.g + s.b < 400) {
|
||||
if(s.a & 0x80 && s.r + s.g + s.b < 400) {
|
||||
t.r = t.g = t.b = 128;
|
||||
t.a = 255;
|
||||
t.a = s.a;
|
||||
return t;
|
||||
}
|
||||
s = mx[0][0];
|
||||
if(s.a == 255 && s.r + s.g + s.b < 400) {
|
||||
t.r = t.g = t.b = t.a = 255;
|
||||
if(s.a & 0x80 && s.r + s.g + s.b < 400) {
|
||||
t.r = t.g = t.b = 255;
|
||||
t.a = s.a;
|
||||
return t;
|
||||
}
|
||||
Zero(t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue