@@ -261,7 +261,7 @@ class PSPDPadButtons : public DragDropButton {
261
261
dc.Draw ()->DrawImageRotated (dirImage, x, y, scale_, angle + PI, colorBg, false );
262
262
dc.Draw ()->DrawImageRotated (ImageID (" I_ARROW" ), x2, y2, scale_, angle + PI, color);
263
263
}
264
- scale_ = theScale_/ layoutAreaScale;
264
+ scale_ = theScale_ / layoutAreaScale;
265
265
}
266
266
267
267
void GetContentDimensions (const UIContext &dc, float &w, float &h) const override {
@@ -284,6 +284,8 @@ class PSPStickDragDrop : public DragDropButton {
284
284
}
285
285
286
286
void Draw (UIContext &dc) override {
287
+ scale_ = theScale_ * layoutAreaScale;
288
+
287
289
float opacity = GamepadGetOpacity ();
288
290
uint32_t colorBg = colorAlpha (GetButtonColor (), opacity);
289
291
@@ -292,6 +294,8 @@ class PSPStickDragDrop : public DragDropButton {
292
294
293
295
dc.Draw ()->DrawImage (stickBg, bounds_.centerX (), bounds_.centerY (), scale_, colorBg, ALIGN_CENTER);
294
296
dc.Draw ()->DrawImage (stickImage, bounds_.centerX (), bounds_.centerY (), scale_ * spacing_, colorBg, ALIGN_CENTER);
297
+
298
+ scale_ = theScale_ / layoutAreaScale;
295
299
}
296
300
297
301
float GetSpacing () const override { return spacing_ * 3 ; }
0 commit comments