Fix property format 32 usage for 64b.
svn path=/trunk/KDE/kdebase/workspace/; revision=758332
This commit is contained in:
parent
32272e9613
commit
0bea1cc50e
2 changed files with 3 additions and 2 deletions
|
@ -1080,7 +1080,8 @@ QByteArray EffectWindowImpl::readProperty( long atom, long type, int format ) co
|
|||
}
|
||||
if( long( rtype ) == type && rformat == format )
|
||||
{
|
||||
QByteArray ret( reinterpret_cast< const char* >( data ), nitems * ( format / 8 ));
|
||||
int bytelen = format == 8 ? nitems : format == 16 ? nitems * sizeof( short ) : nitems * sizeof( long );
|
||||
QByteArray ret( reinterpret_cast< const char* >( data ), bytelen );
|
||||
XFree( data );
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ void TaskbarThumbnailEffect::propertyNotify( EffectWindow* w, long a )
|
|||
if( data.length() < 1 )
|
||||
return;
|
||||
long* d = reinterpret_cast< long* >( data.data());
|
||||
int len = data.length() / 4;
|
||||
int len = data.length() / sizeof( d[ 0 ] );
|
||||
int pos = 0;
|
||||
int cnt = d[ 0 ];
|
||||
++pos;
|
||||
|
|
Loading…
Reference in a new issue