Browse Source

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 years ago
parent
commit
198a340fb7
1 changed files with 1 additions and 1 deletions
  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 || (!_absolute && _state == ACTIVE))
     {
     {
         if (_absolute)
         if (_absolute)
-            _region = _bounds;
+            _region = _viewportClipBounds;
 
 
         // Draw the outer image.
         // Draw the outer image.
         Theme::ThemeImage* outer = getImage("outer", _state);
         Theme::ThemeImage* outer = getImage("outer", _state);