Diffstat (limited to 'noncore/apps/opie-reader/StyleConsts.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/StyleConsts.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/StyleConsts.cpp b/noncore/apps/opie-reader/StyleConsts.cpp index f47acee..77c9d3b 100644 --- a/noncore/apps/opie-reader/StyleConsts.cpp +++ b/noncore/apps/opie-reader/StyleConsts.cpp | |||
@@ -6,7 +6,7 @@ GraphicLink::~GraphicLink() { delete graphic; } | |||
6 | 6 | ||
7 | pmstore::~pmstore() | 7 | pmstore::~pmstore() |
8 | { | 8 | { |
9 | //// odebug << "Deleting image" << oendl; | 9 | //// qDebug("Deleting image"); |
10 | delete graphic; | 10 | delete graphic; |
11 | } | 11 | } |
12 | 12 | ||
@@ -92,3 +92,17 @@ void CStyle::setPicture(bool canScale, QImage* _g, bool il, unsigned long tgt) | |||
92 | } | 92 | } |
93 | if (_g != NULL) graphic = new pmstore(canScale, _g, il, tgt); | 93 | if (_g != NULL) graphic = new pmstore(canScale, _g, il, tgt); |
94 | } | 94 | } |
95 | |||
96 | void CStyle::invert() | ||
97 | { | ||
98 | qDebug("Before:<%02x%02x%02x>", sty.bred, sty.bgreen, sty.bblue); | ||
99 | qDebug("Before:<%02x%02x%02x>", sty.red, sty.green, sty.blue); | ||
100 | sty.bred = 255-sty.bred; | ||
101 | sty.bgreen = 255-sty.bgreen; | ||
102 | sty.bblue = 255-sty.bblue; | ||
103 | sty.red = 255-sty.red; | ||
104 | sty.green = 255-sty.green; | ||
105 | sty.blue = 255-sty.blue; | ||
106 | qDebug("After:<%02x%02x%02x>", sty.bred, sty.bgreen, sty.bblue); | ||
107 | qDebug("After:<%02x%02x%02x>", sty.red, sty.green, sty.blue); | ||
108 | } | ||