UI: Fix fade-out when editing touch controls.

This commit is contained in:
Unknown W. Brackets committed 2017-06-03 09:45:53 -07:00
1 parent 979bc58cac
commit cb1b8f23bb
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include <algorithm>
#include <vector>
#include "base/colorutil.h"
@@ -65,6 +66,12 @@ public:
virtual float GetSpacing() const { return 1.0f; }
virtual void SetSpacing(float s) { }
protected:
float GetButtonOpacity() override {
float opacity = g_Config.iTouchButtonOpacity / 100.0f;
return std::max(0.5f, opacity);
}
private:
// convert from screen coordinates (leftColumnWidth to dp_xres) to actual fullscreen coordinates (0 to 1.0)
inline float toFullscreenCoord(int screenx) {