}\r
\r
public int getRegionX () {\r
- return (int)(u * texture.getWidth());\r
+ return Math.round(u * texture.getWidth());\r
}\r
\r
public void setRegionX (int x) {\r
}\r
\r
public int getRegionY () {\r
- return (int)(v * texture.getHeight());\r
+ return Math.round(v * texture.getHeight());\r
}\r
\r
public void setRegionY (int y) {\r