Kaynağa Gözat

Merge pull request #1686 from louis-mclaughlin/joystick_width_patch

Fixed joystick width being set to height
Sean Taylor 11 yıl önce
ebeveyn
işleme
406c0e40cf
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      gameplay/src/JoystickControl.cpp

+ 1 - 1
gameplay/src/JoystickControl.cpp

@@ -279,7 +279,7 @@ void JoystickControl::updateAbsoluteSizes()
 
         *_outerSizePixels = _outerRegionCoord ? getPixelSize(*_outerRegionCoord, _outerRegionCoordBoundsBits) : getPixelSize(outerImage);
         _screenRegionPixels.width = _outerSizePixels->x > _screenRegionPixels.width ? _outerSizePixels->x : _screenRegionPixels.width;
-        _screenRegionPixels.width = _outerSizePixels->y > _screenRegionPixels.height ? _outerSizePixels->y : _screenRegionPixels.height;
+        _screenRegionPixels.height = _outerSizePixels->y > _screenRegionPixels.height ? _outerSizePixels->y : _screenRegionPixels.height;
     }
 
     _radiusPixels = std::max(1.0f, _boundsBits & BOUNDS_RADIUS_PERCENTAGE_BIT ?