protected void applyScale(GL10 pGL) { float scaleX = this.mScaleX; float scaleY = this.mScaleY; if (scaleX != 1 || scaleY != 1) { float scaleCenterX = this.mScaleCenterX; float scaleCenterY = this.mScaleCenterY; pGL.GlTranslatef(scaleCenterX, scaleCenterY, 0); pGL.GlScalef(scaleX, scaleY, 1); pGL.GlTranslatef(-scaleCenterX, -scaleCenterY, 0); } }