cmm: fix regression which increased all app size

git-svn-id: svn://kolibrios.org@7450 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2018-10-11 14:32:24 +00:00
parent ce3c40a673
commit bb682b53c1
11 changed files with 71 additions and 58 deletions

View File

@@ -25,21 +25,22 @@
:dword _rgb::RgbToDword()
{
/*
dword _r, _g, _b;
_r = r << 16;
_g = g << 8;
_b = b;
return _r + _g + _b;
*/
EAX = r << 16;
EAX += g << 8;
EAX += b;
}
:dword MixColors(dword _base, _overlying, dword a)
{
_rgb rgb1, rgb2, rgb_final;
dword n_a;
if (a<0) || (a>255) {
debug("Wrong alpha param in MixColors()!");
debugval("alpha", a);
}
rgb1.DwordToRgb(_base);
rgb2.DwordToRgb(_overlying);