mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 16:24:53 +02:00
Merge pull request #14848 from iota97/dpad-size-fix
Fix DPAD size calculation
This commit is contained in:
@@ -273,8 +273,8 @@ public:
|
||||
|
||||
void GetContentDimensions(const UIContext &dc, float &w, float &h) const override {
|
||||
const AtlasImage *image = dc.Draw()->GetAtlas()->getImage(ImageID("I_DIR"));
|
||||
w = 2 * D_pad_Radius * spacing_ + image->w * scale_;
|
||||
h = 2 * D_pad_Radius * spacing_ + image->h * scale_;
|
||||
w = 2.0f * D_pad_Radius * spacing_ + image->w * scale_;
|
||||
h = w;
|
||||
};
|
||||
|
||||
float GetSpacing() const override { return spacing_; }
|
||||
|
||||
Reference in New Issue
Block a user