projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3a8e52
)
Make Quassel not crash on color codes > 15 (Sput)
author
Alexander von Renteln
<phon@quassel-irc.org>
Wed, 16 Jan 2008 11:03:08 +0000
(11:03 +0000)
committer
Alexander von Renteln
<phon@quassel-irc.org>
Wed, 16 Jan 2008 11:03:08 +0000
(11:03 +0000)
src/uisupport/uistyle.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/uistyle.cpp
b/src/uisupport/uistyle.cpp
index
f0ff8c0
..
5f46331
100644
(file)
--- a/
src/uisupport/uistyle.cpp
+++ b/
src/uisupport/uistyle.cpp
@@
-156,6
+156,8
@@
UiStyle::StyledText UiStyle::styleString(QString s) {
length = 4;
} else {
int color = 10 * s[pos+4].digitValue() + s[pos+5].digitValue();
+ //TODO: use 99 as transparent color (re mirc color "standard")
+ color &= 0x0f;
int *colptr; FormatType coltype;
if(s[pos+3] == 'f') { // foreground
colptr = &fgCol; coltype = FgCol00;