[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/style-workshop/largeimagelib
From:       Maks Orlovich <maksim () kde ! org>
Date:       2004-06-30 3:46:37
Message-ID: 20040630034637.B7ECA99B3 () office ! kde ! org
[Download RAW message or body]

CVS commit by orlovich: 

Properly take advantage of the pixmap cache when scaling, and the images are \
discarded. Makes us  belong quite a bit better when scaling down 22K x 22K pixel \
images a lot, although it's still slow...  The replacement behavior of the cache is a \
bit nutty, though, as we end up loosing the scaled version a lot.  Need to think up a \
better policy, keeping in mind the line-locality of resizing stuff during moderate \
scaled downs...


  M +2 -1      frame.cpp   1.14


--- kdenonbeta/style-workshop/largeimagelib/frame.cpp  #1.13:1.14
@@ -315,5 +315,6 @@ const QPixmap& Frame::pixmap(unsigned in
             TileStack& refTS = basicPlane->tile(0, origTileY);
             
-            if (ts.imageProgress[line] < refTS.imageProgress[origOffsetY])
+            if ((ts.imageProgress[line] < refTS.imageProgress[origOffsetY]) && 
+                (ts.pixmapProgress[line] < refTS.imageProgress[origOffsetY]))
             {
                 update = true;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic