소스 검색

Merge pull request #551 from blackberry-gaming/next-kcunney

Fixes bug in Joystick where the control was being rendered in the incorrect position when defined within a container.
Sean Paul Taylor 13 년 전
부모
커밋
198a340fb7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gameplay/src/Joystick.cpp

+ 1 - 1
gameplay/src/Joystick.cpp

@@ -201,7 +201,7 @@ void Joystick::drawImages(SpriteBatch* spriteBatch, const Rectangle& clip)
     if (_absolute || (!_absolute && _state == ACTIVE))
     {
         if (_absolute)
-            _region = _bounds;
+            _region = _viewportClipBounds;
 
         // Draw the outer image.
         Theme::ThemeImage* outer = getImage("outer", _state);