Back to project page AndroidGame.
The source code is released under:
GNU General Public License
If you think the Android project AndroidGame listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.androidmillgame; /*from w ww.j a v a 2 s . com*/ public class Pd2px { public static int pd2px(int pd) { float tmp = pd; return (int) (tmp * (GamePanel.dpi / 160.0f)); } } //----------------------------------------------------------------------------------------------------------------------