Home | History | Annotate | Download | only in launcher2

Lines Matching refs:sourceWidth

73         int sourceWidth = icon.getWidth();
75 if (sourceWidth > textureWidth && sourceHeight > textureHeight) {
78 (sourceWidth - textureWidth) / 2,
81 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) {
115 int sourceWidth = icon.getIntrinsicWidth();
117 if (sourceWidth > 0 && sourceHeight > 0) {
119 if (width < sourceWidth || height < sourceHeight) {
121 final float ratio = (float) sourceWidth / sourceHeight;
122 if (sourceWidth > sourceHeight) {
124 } else if (sourceHeight > sourceWidth) {
127 } else if (sourceWidth < width && sourceHeight < height) {
129 width = sourceWidth;