This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private final Matrix mMatrix = new Matrix(); | |
private void updateMatrix() { | |
float mw = this.getWidth(); | |
float mh = this.getHeight(); | |
float hw = this.getWidth() / 2.0f; | |
float hh = this.getHeight() / 2.0f; | |
float cw = (float)Resources.getSystem().getDisplayMetrics().widthPixels; //Make sure to import Resources package |