Lines Matching refs:sourceWidth
75 int sourceWidth = icon.getWidth();
77 if (sourceWidth > textureWidth && sourceHeight > textureHeight) {
80 (sourceWidth - textureWidth) / 2,
83 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) {
116 int sourceWidth = icon.getIntrinsicWidth();
119 if (sourceWidth > 0 && sourceHeight > 0) {
121 if (width < sourceWidth || height < sourceHeight) {
123 final float ratio = (float) sourceWidth / sourceHeight;
124 if (sourceWidth > sourceHeight) {
126 } else if (sourceHeight > sourceWidth) {
129 } else if (sourceWidth < width && sourceHeight < height) {
131 width = sourceWidth;