DEADSOFTWARE

Upgrade touch controls
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / GameRenderer.java
index b45479914086c5f8474023502866d4f295b3ddda..1f1858989ac0284644b0e725d2d3f433c4bf36fd 100644 (file)
@@ -170,7 +170,7 @@ public class GameRenderer extends Renderer {
 
     private void drawTouchGui() {
         for (int i = 0; i < guiMap.size; i++) {
-            Rectangle touchKey = guiMap.getValueAt(i);
+            Rectangle touchKey = guiMap.getValueAt(i).getRect();
             spriter.draw(textureRegions.get(guiMap.getKeyAt(i)),
                     touchKey.x, touchKey.y, touchKey.width, touchKey.height);
         }