[Panel-devel] [PATCH] QPixmapCache size (bug 151109)
Sean Harmer
sh at theharmers.co.uk
Tue Oct 23 22:03:45 CEST 2007
HI All,
Please find a proposed patch that attempts to automatically set the size of
the QPixmapCache for plasma to a size that is (hopefully) suitable on an
arbitrarily sized set of screens. I and many other people have been bitten by
this bug when testing out KDE 4 svn builds and this is something that gives a
bad impression form the word go. So I thought I'd try a quick fix. ;-)
I am taking the conservative approach and assuming a bit depth of 32bpp. I
tried to use QPixmap::defaultDepth() but this was only returning 24bpp, i.e.
it did not include an alpha channel on my setup here.
I have (arbitrarily) increased the calculated value by 10% to allow some
leeway. If anybody with more information knows of a more realistic heuristic
than this then please feel free to change it. :-)
Kind regards,
Sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plasma-cache.patch
Type: text/x-diff
Size: 1676 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071023/b6e11312/attachment.bin
More information about the Panel-devel
mailing list