mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 02:39:05 +02:00
Fix DPAD size calculation
This commit is contained in:
1 parent
3829ca0677
commit
5bf0068ea6
2 files changed
+14
-8
No files matched your search
@@ -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