[Konsole-devel] [Bug 181006] Konsole won't allow 10% or 20% transparency

Andre Wisplinghoff andre.wisplinghoff at gmail.com
Sat Jan 17 01:43:37 UTC 2009


http://bugs.kde.org/show_bug.cgi?id=181006





--- Comment #1 from Andre Wisplinghoff <andre wisplinghoff gmail com>  2009-01-17 02:43:35 ---
Created an attachment (id=30333)
 --> (http://bugs.kde.org/attachment.cgi?id=30333)
quick fix: call qRound instead of casting to int

i was unable to test the fix, because I don't have an usable kde build
environment set up, but I think i found the issue:

opacity is stored as a floating point number and the operation of muliplying it
with 100 and casting it to int sometimes leads to a number one less than is
expected - caused by inaccuracy of the floating point number.
why isn't opacity stored as an int? perhaps that would be a better fix.

it can be that <QtGlobal> must be added as an include to make it compile.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list