Commit ea8b5164 authored by Torsten Rahn's avatar Torsten Rahn
Browse files

- Backport "Fix screen corruptions for jmho"


svn path=/branches/KDE/4.4/kdeedu/marble/; revision=1076838
parent 7950f706
......@@ -77,13 +77,16 @@ TextureTilePrivate::~TextureTilePrivate()
uint TextureTilePrivate::pixel( int x, int y ) const
{
if ( m_depth == 8 || m_depth == 1 ) {
if ( !m_isGrayscale )
return m_rawtile.color( (jumpTable8)[y][x] );
else
if ( m_depth == 8 ) {
if ( m_isGrayscale )
return (jumpTable8)[y][x];
else
return m_rawtile.color( (jumpTable8)[y][x] );
}
return (jumpTable32)[y][x];
if ( m_depth == 32 )
return (jumpTable32)[y][x];
return m_rawtile.pixel( x, y );
}
uint TextureTilePrivate::pixelF( qreal x, qreal y, const QRgb& topLeftValue ) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment