[Marble-commits] KDE/kdeedu/marble/src/lib

Dennis Nienhüser earthwings at gentoo.org
Tue Jan 19 18:55:31 CET 2010


SVN commit 1077214 by nienhueser:

Use the lookup table to speedup pixel access of 1 bit colormapped images (frequently used in OpenStreetMap).


 M  +3 -0      TextureTile.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/TextureTile.cpp #1077213:1077214
@@ -86,6 +86,9 @@
     if ( m_depth == 32 )
         return (jumpTable32)[y][x];
     
+    if ( m_depth == 1 && !m_isGrayscale )
+        return m_rawtile.color((jumpTable8)[y][x/8] >> 7);
+
     return m_rawtile.pixel( x, y );
 }
 


More information about the Marble-commits mailing list