Little clarifying API doc for nearestPowerOfTwo().

svn path=/branches/work/kwin_composite/; revision=659150
This commit is contained in:
Rivo Laks 2007-04-29 15:31:57 +00:00
parent 72f2d412c1
commit 17ae1620ac

View file

@ -55,6 +55,10 @@ bool KWIN_EXPORT hasGLExtension(const QString& extension);
void KWIN_EXPORT checkGLError( const char* txt );
inline bool KWIN_EXPORT isPowerOfTwo( int x ) { return (( x & ( x - 1 )) == 0 ); }
/**
* @return power of two integer _greater or equal to_ x.
* E.g. nearestPowerOfTwo(513) = nearestPowerOfTwo(800) = 1024
**/
int KWIN_EXPORT nearestPowerOfTwo( int x );
#ifdef HAVE_OPENGL