author | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
commit | 73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (side-by-side diff) | |
tree | 1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/StyleConsts.cpp | |
parent | e90847c784c48bd21bf8768cb38edb853b832697 (diff) | |
download | opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.zip opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.gz opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.bz2 |
updated source to opie-reader 0.7g
Diffstat (limited to 'noncore/apps/opie-reader/StyleConsts.cpp') (more/less context) (ignore 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 @@ -5,9 +5,9 @@ GraphicLink::~GraphicLink() { delete graphic; } pmstore::~pmstore() { -//// odebug << "Deleting image" << oendl; +//// qDebug("Deleting image"); delete graphic; } CStyle::~CStyle() @@ -91,4 +91,18 @@ void CStyle::setPicture(bool canScale, QImage* _g, bool il, unsigned long tgt) graphic = NULL; } if (_g != NULL) graphic = new pmstore(canScale, _g, il, tgt); } + +void CStyle::invert() +{ + qDebug("Before:<%02x%02x%02x>", sty.bred, sty.bgreen, sty.bblue); + qDebug("Before:<%02x%02x%02x>", sty.red, sty.green, sty.blue); + sty.bred = 255-sty.bred; + sty.bgreen = 255-sty.bgreen; + sty.bblue = 255-sty.bblue; + sty.red = 255-sty.red; + sty.green = 255-sty.green; + sty.blue = 255-sty.blue; + qDebug("After:<%02x%02x%02x>", sty.bred, sty.bgreen, sty.bblue); + qDebug("After:<%02x%02x%02x>", sty.red, sty.green, sty.blue); +} |