Lines Matching refs:i

189     int i = 24;  in sal_Shift()  local
190 if( nMask < 0x00010000 ) { nMask <<= 16; i -= 16; } in sal_Shift()
191 if( nMask < 0x01000000 ) { nMask <<= 8; i -= 8; } in sal_Shift()
192 if( nMask < 0x10000000 ) { nMask <<= 4; i -= 4; } in sal_Shift()
193 if( nMask < 0x40000000 ) { nMask <<= 2; i -= 2; } in sal_Shift()
194 if( nMask < 0x80000000 ) { nMask <<= 1; i -= 1; } in sal_Shift()
195 return i; in sal_Shift()
395 for (int i = 0; !b_is && i < n_numextensions; i++) in sal_IsTrustedSolaris() local
396 b_is = (strcmp (p_extensions[i], "SUN_TSOL") == 0); in sal_IsTrustedSolaris()
427 int i; in BestVisual() local
428 for( i = 0; i < nVisuals; i++ ) in BestVisual()
433 if ( pVInfos[i].screen != nScreen ) in BestVisual()
438 if( pVInfos[i].c_class == TrueColor ) in BestVisual()
441 if( pVInfos[i].depth == 24 ) in BestVisual()
444 else if( pVInfos[i].depth == 8 ) in BestVisual()
451 else if( pVInfos[i].depth == 15 ) in BestVisual()
455 else if( pVInfos[i].depth == 16 ) in BestVisual()
459 else if( pVInfos[i].depth == 32 ) in BestVisual()
468 else if( pVInfos[i].c_class == PseudoColor ) in BestVisual()
470 if( pVInfos[i].depth <= 8 ) in BestVisual()
473 else if( pVInfos[i].depth == 12 ) in BestVisual()
477 pWeight[ i ] = bUsable ? nTrueColor*pVInfos[i].depth : -1024; in BestVisual()
478 pWeight[ i ] -= pVInfos[ i ].visualid; in BestVisual()
483 for( i = 0; i < nVisuals; i++ ) in BestVisual()
485 if( pWeight[ i ] > nBestWeight ) in BestVisual()
487 nBestWeight = pWeight[ i ]; in BestVisual()
488 nBestVisual = i; in BestVisual()
560 for( unsigned int i = 0; i < m_aScreens.size(); i++ ) in doDestruct() local
562 ScreenData& rData = m_aScreens[i]; in doDestruct()
575 if( aColMap != None && aColMap != DefaultColormap( pDisp_, i ) ) in doDestruct()
582 for( size_t i = 0; i < POINTER_COUNT; i++ ) in doDestruct() local
584 if( aPointerCache_[i] ) in doDestruct()
585 XFreeCursor( pDisp_, aPointerCache_[i] ); in doDestruct()
800 for( size_t i = 0; i < POINTER_COUNT; i++ ) in Init() local
801 aPointerCache_[i] = None; in Init()
1079 if( aNumLock ) for( int i = ShiftMapIndex; i <= Mod5MapIndex; i++ ) in ModifierMapping() local
1081 if( pXModMap->modifiermap[i*pXModMap->max_keypermod] == aNumLock ) in ModifierMapping()
1084 nNumLockIndex_ = i; in ModifierMapping()
1085 nNumLockMask_ = 1<<i; in ModifierMapping()
2304 for( unsigned int i = 0; i < m_aScreens.size(); i++ ) in Dispatch() local
2306 if( pEvent->xproperty.window == m_aScreens[i].m_aRefWindow ) in Dispatch()
2629 for( int i = 0; i < nFramebuffers; i++ ) in InitXinerama() local
2630 addXineramaScreenUnique( pFramebuffers[i].x, in InitXinerama()
2631 pFramebuffers[i].y, in InitXinerama()
2632 pFramebuffers[i].width, in InitXinerama()
2633 pFramebuffers[i].height ); in InitXinerama()
2646 for( int i = 0; i < nFramebuffers; i++ ) in InitXinerama() local
2648 addXineramaScreenUnique( pScreens[i].x_org, in InitXinerama()
2649 pScreens[i].y_org, in InitXinerama()
2650 pScreens[i].width, in InitXinerama()
2651 pScreens[i].height ); in InitXinerama()
3061 for( unsigned int i = 0; i < m_nUsed; i++ ) in SalColormap() local
3063 const BitmapColor &rColor = rPalette[i]; in SalColormap()
3064 m_aPalette[i] = MAKE_SALCOLOR( rColor.GetRed(), in SalColormap()
3067 if( (m_nBlackPixel == SALCOLOR_NONE) && (SALCOLOR_BLACK == m_aPalette[i]) ) in SalColormap()
3068 m_nBlackPixel = i; in SalColormap()
3069 else if( (m_nWhitePixel == SALCOLOR_NONE) && (SALCOLOR_WHITE == m_aPalette[i]) ) in SalColormap()
3070 m_nWhitePixel = i; in SalColormap()
3203 for( int i = 0; i < rPalette.GetEntryCount(); i++ ) in SetPalette() local
3205 const BitmapColor &rColor = rPalette[i]; in SetPalette()
3206 m_aPalette[i] = MAKE_SALCOLOR( rColor.GetRed(), in SetPalette()
3209 if( (m_nBlackPixel == SALCOLOR_NONE) && (SALCOLOR_BLACK == m_aPalette[i]) ) in SetPalette()
3210 m_nBlackPixel = i; in SetPalette()
3211 else if( (m_nWhitePixel == SALCOLOR_NONE) && (SALCOLOR_WHITE == m_aPalette[i]) ) in SetPalette()
3212 m_nWhitePixel = i; in SetPalette()
3218 Pixel i; in GetPalette() local
3223 for( i = 0; i < m_nUsed; i++ ) in GetPalette()
3225 aColor[i].red = aColor[i].green = aColor[i].blue = 0; in GetPalette()
3226 aColor[i].pixel = i; in GetPalette()
3231 for( i = 0; i < m_nUsed; i++ ) in GetPalette()
3233 m_aPalette[i] = MAKE_SALCOLOR( aColor[i].red >> 8, in GetPalette()
3234 aColor[i].green >> 8, in GetPalette()
3235 aColor[i].blue >> 8 ); in GetPalette()
3249 for( sal_uInt16 i = 1; i < nUsed; i++ ) in sal_Lookup() local
3251 int n = ColorDiff( rPalette[i], r, g, b ); in sal_Lookup()
3256 return i; in sal_Lookup()
3258 nPixel = i; in sal_Lookup()
3269 int i = 0; in GetLookupTable() local
3273 m_aLookupTable[i++] = sal_Lookup( m_aPalette, r, g, b, m_nUsed ); in GetLookupTable()
3362 for( Pixel i = 0; i < m_nUsed; i++ ) in GetPixel() local
3363 if( m_aPalette[i] == nSalColor ) in GetPixel()
3364 return i; in GetPixel()