mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
UI: Avoid enum/float comparisons.
This commit is contained in:
1 parent
294d028dbf
commit
c20bcc1f08
3 files changed
+8
-10
No files matched your search
+3
-3
@@ -19,9 +19,9 @@
|
||||
|
||||
namespace UI {
|
||||
|
||||
const float ITEM_HEIGHT = 64.f;
|
||||
const float MIN_TEXT_SCALE = 0.8f;
|
||||
const float MAX_ITEM_SIZE = 65535.0f;
|
||||
static constexpr Size ITEM_HEIGHT = 64.f;
|
||||
static constexpr float MIN_TEXT_SCALE = 0.8f;
|
||||
static constexpr float MAX_ITEM_SIZE = 65535.0f;
|
||||
|
||||
void MeasureBySpec(Size sz, float contentWidth, MeasureSpec spec, float *measured) {
|
||||
*measured = sz;
|
||||
|
||||
Reference in new issue
Block a user