X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=627ba5e863ff4a9077c4c16ac4ba30c683a5734c;hp=cbd99c24545d6d284e86994efc325d1fd6d9ebf5;hb=f45fafc6d8ec122a7244cef1fdae1cdf16c6a0c7;hpb=019a59ffca44ddc32fc6b16fd6cdcc8f3e1c93c6 diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index cbd99c24..627ba5e8 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -230,10 +230,13 @@ UiStyle::StyledString UiStyle::styleString(const QString &s_) { int color = 10 * s[pos+4].digitValue() + s[pos+5].digitValue(); //TODO: use 99 as transparent color (re mirc color "standard") color &= 0x0f; - if(s[pos+3] == 'f') + if(s[pos+3] == 'f') { + curfmt &= 0xf0ffffff; curfmt |= (color << 24) | 0x00400000; - else + } else { + curfmt &= 0x0fffffff; curfmt |= (color << 28) | 0x00800000; + } length = 6; } } else if(s[pos+1] == 'O') { // reset formatting